Skip to content

Commit 9af769e

Browse files
committed
Merge 21ad4d6
2 parents af90ea2 + 21ad4d6 commit 9af769e

File tree

621 files changed

+57964
-671
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

621 files changed

+57964
-671
lines changed

generated/100

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
#!/usr/bin/env bash
2+
#<html><head><!--
3+
# The line above makes a fake HTML document out of this bash script
4+
5+
#This zero conf script was generated from the sources found in:
6+
# https://github.com/pharo-project/pharo-zeroconf
7+
8+
# stop the script if a single command fails
9+
set -e
10+
11+
# define an echo that only outputs to stderr
12+
echoerr() { echo "$@" 1>&2; }
13+
# try to use curl if possible
14+
if [[ `which curl 2> /dev/null` ]]; then
15+
DOWNLOAD="curl --silent --location --compressed ";
16+
DOWNLOAD_TO="$DOWNLOAD --output ";
17+
elif [[ `which wget 2> /dev/null` ]]; then
18+
DOWNLOAD_TO="wget --quiet --output-document=";
19+
DOWNLOAD="$DOWNLOAD_TO-";
20+
else
21+
echo "Please install curl or wget on your machine";
22+
exit 1
23+
fi
24+
25+
26+
27+
28+
# ARGUMENT HANDLING =============================================================
29+
if { [ "$1" = "-h" ] || [ "$1" = "--help" ]; }; then
30+
echo "This script downloads the latest Pharo 100 Image.
31+
The following artifacts are created:
32+
Pharo.changes A changes file for the Pharo Image
33+
Pharo.image A Pharo image, to be opened with the Pharo VM
34+
"
35+
exit 0;
36+
elif [ $# -gt 0 ]; then
37+
echo "--help is the only argument allowed"
38+
exit 1;
39+
fi
40+
41+
42+
# RELEASE VERSION ===============================================================
43+
ARCH=`uname -m`
44+
VERSION="100"
45+
FILES_URL="http://files.pharo.org/get-files/${VERSION}"
46+
IMAGE_FILE_NAME="pharoImage-${ARCH}"
47+
48+
49+
# DOWNLOADING THE LATEST PHARO 100 IMAGE ========================================
50+
IMAGE_URL="${FILES_URL}/${IMAGE_FILE_NAME}.zip"
51+
52+
echoerr "Downloading the latest 100 Image:"
53+
echoerr " $IMAGE_URL"
54+
55+
TMP_DIR=`mktemp -d image.XXXXXX`
56+
$DOWNLOAD_TO$TMP_DIR/image.zip $IMAGE_URL
57+
58+
unzip -q $TMP_DIR/image.zip -d $TMP_DIR
59+
rm -rf image image.zip
60+
61+
if [ -e Pharo.image ]; then
62+
BKDATE=`date +%Y%m%d%H%M`
63+
cp -f Pharo.image Pharo.image.bak.$BKDATE
64+
cp -f Pharo.changes Pharo.changes.bak.$BKDATE
65+
fi
66+
PHARO_IMAGE=`find $TMP_DIR -name \*.image`
67+
mv -f "$PHARO_IMAGE" Pharo.image
68+
PHARO_CHANGES=`find $TMP_DIR -name \*.changes`
69+
mv -f "$PHARO_CHANGES" Pharo.changes;
70+
71+
PHARO_IMAGE_SOURCES=`find $TMP_DIR -name \*.sources`
72+
PHARO_IMAGE_SOURCES_FILENAME=$(basename "$PHARO_IMAGE_SOURCES")
73+
mv -i "$PHARO_IMAGE_SOURCES" "$PHARO_IMAGE_SOURCES_FILENAME"
74+
75+
rm -r $TMP_DIR >> /dev/null
76+
77+
echo Pharo.image
78+
79+
80+
# HTML HELP =====================================================================
81+
HTML_HELP=<<HTML_HELP
82+
-->
83+
<title>Pharo Zeroconf Script</title>
84+
<style>
85+
BODY, TABLE {
86+
font-family: Arial;
87+
line-height: 1.5em;
88+
}
89+
BODY {
90+
background-color: white;
91+
margin-top: -1.5em;
92+
}
93+
TD {
94+
vertical-align: top;
95+
padding: 0 1ex 0 0;
96+
}
97+
PRE, CODE {
98+
background-color: #EEE;
99+
padding: 0.5ex 0.8ex;
100+
border-radius: 0.5ex;
101+
}
102+
A {
103+
color: black;
104+
}
105+
</style>
106+
<body>
107+
<h1>Pharo Zeroconf Script</h1>
108+
<p>This script downloads the latest Pharo 100 Image.</p>
109+
<h2>Usage</h2>
110+
<code>curl <a href="https://get.pharo.org/100">https://get.pharo.org/100</a> | bash </code>
111+
<br/>
112+
or if <code>curl</code> is not available: </br>
113+
<code>wget -O- <a href="https://get.pharo.org/100">https://get.pharo.org/100</a> | bash </code>
114+
115+
<h2>Artifacts</h2>
116+
<table><tr><td>Pharo.changes</td><td>A changes file for the Pharo Image</td></tr>
117+
<tr><td>Pharo.image</td><td>A Pharo image, to be opened with the Pharo VM</td></tr></table>
118+
119+
<!--
120+
HTML_HELP
121+
# --!></body></html>

generated/100+vm

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
#!/usr/bin/env bash
2+
#<html><head><!--
3+
# The line above makes a fake HTML document out of this bash script
4+
5+
#This zero conf script was generated from the sources found in:
6+
# https://github.com/pharo-project/pharo-zeroconf
7+
8+
# stop the script if a single command fails
9+
set -e
10+
11+
# define an echo that only outputs to stderr
12+
echoerr() { echo "$@" 1>&2; }
13+
# try to use curl if possible
14+
if [[ `which curl 2> /dev/null` ]]; then
15+
DOWNLOAD="curl --silent --location --compressed ";
16+
DOWNLOAD_TO="$DOWNLOAD --output ";
17+
elif [[ `which wget 2> /dev/null` ]]; then
18+
DOWNLOAD_TO="wget --quiet --output-document=";
19+
DOWNLOAD="$DOWNLOAD_TO-";
20+
else
21+
echo "Please install curl or wget on your machine";
22+
exit 1
23+
fi
24+
25+
26+
27+
28+
# ARGUMENT HANDLING =============================================================
29+
if { [ "$1" = "-h" ] || [ "$1" = "--help" ]; }; then
30+
echo "This script downloads the latest Pharo 100 Image.
31+
This script downloads the stable Pharo VM for 100.
32+
33+
The following artifacts are created:
34+
Pharo.changes A changes file for the Pharo Image
35+
Pharo.image A Pharo image, to be opened with the Pharo VM
36+
pharo Script to run the downloaded VM in headless mode
37+
pharo-ui Script to run the downloaded VM in UI mode
38+
pharo-vm/ Directory containing the VM
39+
"
40+
exit 0;
41+
elif [ $# -gt 0 ]; then
42+
echo "--help is the only argument allowed"
43+
exit 1;
44+
fi
45+
46+
47+
# DOWNLOAD SUB-SCRIPTS ==========================================================
48+
# This script downloads the latest Pharo 100 Image. -----------------------------
49+
$DOWNLOAD https://get.pharo.org/100 | bash
50+
# This script downloads the stable Pharo VM for 100. ----------------------------
51+
$DOWNLOAD https://get.pharo.org/vm100 | bash
52+
53+
54+
# HTML HELP =====================================================================
55+
HTML_HELP=<<HTML_HELP
56+
-->
57+
<title>Pharo Zeroconf Script</title>
58+
<style>
59+
BODY, TABLE {
60+
font-family: Arial;
61+
line-height: 1.5em;
62+
}
63+
BODY {
64+
background-color: white;
65+
margin-top: -1.5em;
66+
}
67+
TD {
68+
vertical-align: top;
69+
padding: 0 1ex 0 0;
70+
}
71+
PRE, CODE {
72+
background-color: #EEE;
73+
padding: 0.5ex 0.8ex;
74+
border-radius: 0.5ex;
75+
}
76+
A {
77+
color: black;
78+
}
79+
</style>
80+
<body>
81+
<h1>Pharo Zeroconf Script</h1>
82+
<p>This script downloads the latest Pharo 100 Image.<br/>
83+
This script downloads the stable Pharo VM for 100.<br/>
84+
</p>
85+
<h2>Usage</h2>
86+
<code>curl <a href="https://get.pharo.org/100+vm">https://get.pharo.org/100+vm</a> | bash </code>
87+
<br/>
88+
or if <code>curl</code> is not available: </br>
89+
<code>wget -O- <a href="https://get.pharo.org/100+vm">https://get.pharo.org/100+vm</a> | bash </code>
90+
91+
<h2>Artifacts</h2>
92+
<table><tr><td>Pharo.changes</td><td>A changes file for the Pharo Image</td></tr>
93+
<tr><td>Pharo.image</td><td>A Pharo image, to be opened with the Pharo VM</td></tr>
94+
<tr><td>pharo</td><td>Script to run the downloaded VM in headless mode</td></tr>
95+
<tr><td>pharo-ui</td><td>Script to run the downloaded VM in UI mode</td></tr>
96+
<tr><td>pharo-vm/</td><td>Directory containing the VM</td></tr></table>
97+
98+
<!--
99+
HTML_HELP
100+
# --!></body></html>

generated/100+vmLatest

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
#!/usr/bin/env bash
2+
#<html><head><!--
3+
# The line above makes a fake HTML document out of this bash script
4+
5+
#This zero conf script was generated from the sources found in:
6+
# https://github.com/pharo-project/pharo-zeroconf
7+
8+
# stop the script if a single command fails
9+
set -e
10+
11+
# define an echo that only outputs to stderr
12+
echoerr() { echo "$@" 1>&2; }
13+
# try to use curl if possible
14+
if [[ `which curl 2> /dev/null` ]]; then
15+
DOWNLOAD="curl --silent --location --compressed ";
16+
DOWNLOAD_TO="$DOWNLOAD --output ";
17+
elif [[ `which wget 2> /dev/null` ]]; then
18+
DOWNLOAD_TO="wget --quiet --output-document=";
19+
DOWNLOAD="$DOWNLOAD_TO-";
20+
else
21+
echo "Please install curl or wget on your machine";
22+
exit 1
23+
fi
24+
25+
26+
27+
28+
# ARGUMENT HANDLING =============================================================
29+
if { [ "$1" = "-h" ] || [ "$1" = "--help" ]; }; then
30+
echo "This script downloads the latest Pharo 100 Image.
31+
This script downloads the latest Pharo VM for 100.
32+
33+
The following artifacts are created:
34+
Pharo.changes A changes file for the Pharo Image
35+
Pharo.image A Pharo image, to be opened with the Pharo VM
36+
pharo Script to run the downloaded VM in headless mode
37+
pharo-ui Script to run the downloaded VM in UI mode
38+
pharo-vm/ Directory containing the VM
39+
"
40+
exit 0;
41+
elif [ $# -gt 0 ]; then
42+
echo "--help is the only argument allowed"
43+
exit 1;
44+
fi
45+
46+
47+
# DOWNLOAD SUB-SCRIPTS ==========================================================
48+
# This script downloads the latest Pharo 100 Image. -----------------------------
49+
$DOWNLOAD https://get.pharo.org/100 | bash
50+
# This script downloads the latest Pharo VM for 100. ----------------------------
51+
$DOWNLOAD https://get.pharo.org/vmLatest100 | bash
52+
53+
54+
# HTML HELP =====================================================================
55+
HTML_HELP=<<HTML_HELP
56+
-->
57+
<title>Pharo Zeroconf Script</title>
58+
<style>
59+
BODY, TABLE {
60+
font-family: Arial;
61+
line-height: 1.5em;
62+
}
63+
BODY {
64+
background-color: white;
65+
margin-top: -1.5em;
66+
}
67+
TD {
68+
vertical-align: top;
69+
padding: 0 1ex 0 0;
70+
}
71+
PRE, CODE {
72+
background-color: #EEE;
73+
padding: 0.5ex 0.8ex;
74+
border-radius: 0.5ex;
75+
}
76+
A {
77+
color: black;
78+
}
79+
</style>
80+
<body>
81+
<h1>Pharo Zeroconf Script</h1>
82+
<p>This script downloads the latest Pharo 100 Image.<br/>
83+
This script downloads the latest Pharo VM for 100.<br/>
84+
</p>
85+
<h2>Usage</h2>
86+
<code>curl <a href="https://get.pharo.org/100+vmLatest">https://get.pharo.org/100+vmLatest</a> | bash </code>
87+
<br/>
88+
or if <code>curl</code> is not available: </br>
89+
<code>wget -O- <a href="https://get.pharo.org/100+vmLatest">https://get.pharo.org/100+vmLatest</a> | bash </code>
90+
91+
<h2>Artifacts</h2>
92+
<table><tr><td>Pharo.changes</td><td>A changes file for the Pharo Image</td></tr>
93+
<tr><td>Pharo.image</td><td>A Pharo image, to be opened with the Pharo VM</td></tr>
94+
<tr><td>pharo</td><td>Script to run the downloaded VM in headless mode</td></tr>
95+
<tr><td>pharo-ui</td><td>Script to run the downloaded VM in UI mode</td></tr>
96+
<tr><td>pharo-vm/</td><td>Directory containing the VM</td></tr></table>
97+
98+
<!--
99+
HTML_HELP
100+
# --!></body></html>

0 commit comments

Comments
 (0)