equal
deleted
inserted
replaced
18 if [ -z "$PHARO" ]; then |
18 if [ -z "$PHARO" ]; then |
19 PHARO=5.0 |
19 PHARO=5.0 |
20 fi |
20 fi |
21 |
21 |
22 if [ ! -x pharo-ui ]; then |
22 if [ ! -x pharo-ui ]; then |
23 rm -rf pharo pharo-ui pharo-vm |
23 rm -rf pharo pharo-ui pharo-vm Pharo.image Pharo.changes |
24 if [ "$PHARO" == "5.0" ]; then |
24 case "$PHARO" in |
25 wget -O- http://swing.fit.cvut.cz/download/pharo/vm-spur-swing | bash |
25 5.0) |
26 else |
26 wget -O- get.pharo.org/50+vm | bash |
27 wget -O- http://swing.fit.cvut.cz/download/pharo/vm-swing | bash |
27 ;; |
28 fi |
|
29 fi |
|
30 |
28 |
31 if [ ! -r Pharo.image ]; then |
29 4.0) |
32 rm -rf Pharo.image Pharo.changes |
30 wget -O- get.pharo.org/40+vm | bash |
33 if [ "$PHARO" == "3.0" ]; then |
31 ;; |
34 wget -O- get.pharo.org/30 | bash |
32 3.0) |
35 elif [ "$PHARO" == "4.0" ]; then |
33 wget -O- get.pharo.org/30+vm | bash |
36 wget -O- get.pharo.org/40 | bash |
34 ;; |
37 elif [ "$PHARO" == "5.0" ]; then |
35 *) |
38 wget -O- get.pharo.org/50 | bash |
36 echo "Unknown PHARO version: $PHARO" |
39 else |
37 exit 1 |
40 echo "Unknown PHARO version: $PHARO" |
38 esac |
41 exit 1 |
|
42 fi |
|
43 fi |
39 fi |
44 } |
40 } |
45 |
41 |
46 # A function to download PetitCompiler and build an image |
42 # A function to download PetitCompiler and build an image |
47 |
43 |