-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-refreshEnvironment.sh
executable file
·221 lines (166 loc) · 9.54 KB
/
1-refreshEnvironment.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
VM_64=../Cuis-Smalltalk-Dev/CuisVM.app/Contents/MacOS/Squeak
if [ -f "$VM_64" ]; then
echo "64 VM Found"
else
echo "64 VM does not exist. It should be at $VM_64"
exit 1
fi
VM_LiveTyping=../SqueakLiveTyping.app/Contents/MacOS/Squeak
if [ -f "$VM_LiveTyping" ]; then
echo "LiveTyping VM Found"
else
echo "LiveTyping VM does not exist. It should be at $VM_LiveTyping"
exit 1
fi
rm *.zip
rm *.tar.gz
rm Cuis7*.image
rm Cuis7*.changes
rm CuisUniversity*.image
rm CuisUniversity*.changes
rm TheCuisBook.pdf
rm -R -f linux64/Packages
rm -R -f windows64/Packages
rm -R -f macos64/Packages
rm -R -f linux64/Documentation
rm -R -f windows64/Documentation
rm -R -f macos64/Documentation
rm -R -f linux64/CoreUpdates
rm -R -f windows64/CoreUpdates
rm -R -f macos64/CoreUpdates
rm -R -f linux64/TrueTypeFonts
rm -R -f windows64/TrueTypeFonts
rm -R -f macos64/TrueTypeFonts
curl -L -o TheCuisBook.pdf https://github.com/Cuis-Smalltalk/TheCuisBook/releases/download/latestpdfbuild/TheCuisBook.pdf
cp TheCuisBook.pdf macos64
cp TheCuisBook.pdf linux64
cp TheCuisBook.pdf windows64
cd ../Cuis-University
git pull
cd ../LiveTyping
git pull
cd ../Cuis-Smalltalk-DenotativeObject
git pull
cd ../Cuis-Smalltalk-Refactoring
git pull
cd ../TDDGuru
git pull
cd ../cuis-finder
git pull
cd ../cuis-finder-asWidget
git pull
cd ../cuis-code-coverage
git pull
cd ../cuis-system-updater
git pull
cd ../SystemCategoryAutoSaving
git pull
cd ../cuis-testlint
git pull
cd ../cuis-move-instance-variable-refactoring
git pull
cd ../move-method-refactoring
git pull
cd ../cuis-extract-class-refactoring
git pull
cd ../Cuis-Smalltalk-Dev
git pull
./pullAllRepos.sh
cd ../Installer
../Squeak.app/Contents/MacOS/Squeak InstallerBuilder.image -d 'CuisInstallerBuilder generateUpdateImagesScriptAndExit'
chmod +x updateImages.sh
./updateImages.sh
chmod +x copy64ImageFromDev.sh
./copy64ImageFromDev.sh
cd ../Cuis-Smalltalk-Dev
cp -r CuisVM.app ../Cuis-University-Installer/linux64/vm-jit
cp -r CuisVM.app ../Cuis-University-Installer/windows64/vm-jit
cp -r CuisVM.app ../Cuis-University-Installer/macos64
cp pullAllRepos.sh ../Cuis-University-Installer/linux64
cp pullAllRepos.sh ../Cuis-University-Installer/windows64
cp pullAllRepos.sh ../Cuis-University-Installer/macos64
cp clonePackageRepos.sh ../Cuis-University-Installer/linux64
cp clonePackageRepos.sh ../Cuis-University-Installer/windows64
cp clonePackageRepos.sh ../Cuis-University-Installer/macos64
cp -R Packages ../Cuis-University-Installer/linux64/Packages
cp -R Packages ../Cuis-University-Installer/windows64/Packages
cp -R Packages ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Measures ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Measures ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Measures ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Calendars ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Calendars ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Calendars ../Cuis-University-Installer/macos64/Packages
mkdir ../Cuis-University-Installer/linux64/Packages/LiveTyping
mkdir ../Cuis-University-Installer/windows64/Packages/LiveTyping
mkdir ../Cuis-University-Installer/macos64/Packages/LiveTyping
rsync -r --exclude '.git*' ../LiveTyping/Smalltalk/*.pck.st ../Cuis-University-Installer/linux64/Packages/LiveTyping
rsync -r --exclude '.git*' ../LiveTyping/Smalltalk/*.pck.st ../Cuis-University-Installer/windows64/Packages/LiveTyping
rsync -r --exclude '.git*' ../LiveTyping/Smalltalk/*.pck.st ../Cuis-University-Installer/macos64/Packages/LiveTyping
rsync -r --exclude '.git*' ../Cuis-Smalltalk-DenotativeObject ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Cuis-Smalltalk-DenotativeObject ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Cuis-Smalltalk-DenotativeObject ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Cuis-Smalltalk-Refactoring ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Cuis-Smalltalk-Refactoring ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Cuis-Smalltalk-Refactoring ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Cuis-University ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Cuis-University ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Cuis-University ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../TDDGuru ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../TDDGuru ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../TDDGuru ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../cuis-finder-asWidget ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../cuis-finder-asWidget ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../cuis-finder-asWidget ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../cuis-testlint ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../cuis-testlint ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../cuis-testlint ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../cuis-move-instance-variable-refactoring ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../cuis-move-instance-variable-refactoring ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../cuis-move-instance-variable-refactoring ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../cuis-move-instance-variable-refactoring ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../cuis-move-instance-variable-refactoring ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../cuis-move-instance-variable-refactoring ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../move-method-refactoring ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../move-method-refactoring ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../move-method-refactoring ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../cuis-extract-class-refactoring ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../cuis-extract-class-refactoring ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../cuis-extract-class-refactoring ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../cuis-system-updater ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../cuis-system-updater ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../cuis-system-updater ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../SystemCategoryAutoSaving ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../SystemCategoryAutoSaving ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../SystemCategoryAutoSaving ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../VectorGraphics ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../VectorGraphics ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../VectorGraphics ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../TheCuisBook ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../TheCuisBook ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../TheCuisBook ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Numerics ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Numerics ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Numerics ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Erudite ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Erudite ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Erudite ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Games ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Games ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Games ../Cuis-University-Installer/macos64/Packages
rsync -r --exclude '.git*' ../Morphic ../Cuis-University-Installer/linux64/Packages
rsync -r --exclude '.git*' ../Morphic ../Cuis-University-Installer/windows64/Packages
rsync -r --exclude '.git*' ../Morphic ../Cuis-University-Installer/macos64/Packages
cp -R Documentation ../Cuis-University-Installer/linux64/Documentation
cp -R Documentation ../Cuis-University-Installer/windows64/Documentation
cp -R Documentation ../Cuis-University-Installer/macos64/Documentation
cp -R CoreUpdates ../Cuis-University-Installer/linux64/CoreUpdates
cp -R CoreUpdates ../Cuis-University-Installer/windows64/CoreUpdates
cp -R CoreUpdates ../Cuis-University-Installer/macos64/CoreUpdates
cp -R TrueTypeFonts ../Cuis-University-Installer/linux64/TrueTypeFonts
cp -R TrueTypeFonts ../Cuis-University-Installer/windows64/TrueTypeFonts
cp -R TrueTypeFonts ../Cuis-University-Installer/macos64/TrueTypeFonts
cd ../Cuis-University-Installer
../Squeak.app/Contents/MacOS/Squeak InstallerBuilder.image -d 'CuisInstallerBuilder generateScriptsAndExit'
chmod +x 2-build64Image.sh
chmod +x 4-zip.sh