Prepare 1.2.3 release
[gnumed:gnumed-fedora.git] / gnumed / gnumed / dists / Linux / make-release_tarball.sh
1 #!/bin/bash
2
3 #====================================================
4 # license: GPL v2 or later
5 #====================================================
6 CLIENTREV="1.2.3"
7 CLIENTARCH="gnumed-client.$CLIENTREV.tgz"
8
9 SRVREV="17.3"
10 SRVARCH="gnumed-server.$SRVREV.tgz"
11
12 FILES_REMOVE=\
13 "./gnumed-client.$CLIENTREV/client/business/README "\
14 "./gnumed-client.$CLIENTREV/client/business/gmXmlDocDesc.py "\
15 "./gnumed-client.$CLIENTREV/client/pycommon/gmDrugObject.py "\
16 "./gnumed-client.$CLIENTREV/client/pycommon/gmDrugView.py "\
17 "./gnumed-client.$CLIENTREV/client/pycommon/gmSchemaRevisionCheck.py "\
18 "./gnumed-client.$CLIENTREV/client/pycommon/gmSerialTools.py "\
19 "./gnumed-client.$CLIENTREV/client/pycommon/gmTrace.py "\
20 "./gnumed-client.$CLIENTREV/client/pycommon/gmdbf.py "\
21 "./gnumed-client.$CLIENTREV/client/pycommon/gmCLI.py "\
22 "./gnumed-client.$CLIENTREV/client/pycommon/gmPG.py "\
23 "./gnumed-client.$CLIENTREV/server/business/README "\
24 "./gnumed-client.$CLIENTREV/server/business/gmXmlDocDesc.py "\
25 "./gnumed-client.$CLIENTREV/server/pycommon/gmDrugObject.py "\
26 "./gnumed-client.$CLIENTREV/server/pycommon/gmDrugView.py "\
27 "./gnumed-client.$CLIENTREV/server/pycommon/gmSchemaRevisionCheck.py "\
28 "./gnumed-client.$CLIENTREV/server/pycommon/gmSerialTools.py "\
29 "./gnumed-client.$CLIENTREV/server/pycommon/gmTrace.py "\
30 "./gnumed-client.$CLIENTREV/server/pycommon/gmdbf.py "\
31 "./gnumed-client.$CLIENTREV/server/pycommon/gmPG.py "\
32 "./gnumed-client.$CLIENTREV/server/bootstrap/README "\
33 "./gnumed-client.$CLIENTREV/client/wxGladeWidgets/README "\
34 "./gnumed-client.$CLIENTREV/client/wxGladeWidgets/wxgAU_AdminLoginV01.py "\
35 "./gnumed-client.$CLIENTREV/client/wxGladeWidgets/wxgAU_DBUserSetupV01.py "\
36 "./gnumed-client.$CLIENTREV/client/wxGladeWidgets/wxgAU_StaffMgrPanel.py "\
37 "./gnumed-client.$CLIENTREV/client/wxGladeWidgets/wxgAU_StaffV01.py "\
38 "./gnumed-client.$CLIENTREV/client/wxGladeWidgets/wxgRequest.py "\
39 "./gnumed-client.$CLIENTREV/client/wxGladeWidgets/wxgDoubleListSplitterPnl.py "\
40 "./gnumed-client.$CLIENTREV/client/wxpython/StyledTextCtrl_1.py "\
41 "./gnumed-client.$CLIENTREV/client/wxpython/gmDermTool.py "\
42 "./gnumed-client.$CLIENTREV/client/wxpython/gmProgressNoteSTC.py "\
43 "./gnumed-client.$CLIENTREV/client/wxpython/zz-gmNewFileTemplate.py "\
44 "./gnumed-client.$CLIENTREV/client/wxpython/gmAU_VaccV01.py "\
45 "./gnumed-client.$CLIENTREV/client/wxpython/gmBMIWidgets.py "\
46 "./gnumed-client.$CLIENTREV/client/wxpython/gmCryptoText.py "\
47 "./gnumed-client.$CLIENTREV/client/wxpython/gmFormPrinter.py "\
48 "./gnumed-client.$CLIENTREV/client/wxpython/gmGP_ActiveProblems.py "\
49 "./gnumed-client.$CLIENTREV/client/wxpython/gmGP_FamilyHistorySummary.py "\
50 "./gnumed-client.$CLIENTREV/client/wxpython/gmGP_HabitsRiskFactors.py "\
51 "./gnumed-client.$CLIENTREV/client/wxpython/gmGP_Inbox.py "\
52 "./gnumed-client.$CLIENTREV/client/wxpython/gmGP_PatientPicture.py "\
53 "./gnumed-client.$CLIENTREV/client/wxpython/gmGP_SocialHistory.py "\
54 "./gnumed-client.$CLIENTREV/client/wxpython/gmLabWidgets.py "\
55 "./gnumed-client.$CLIENTREV/client/wxpython/gmListCtrlMapper.py "\
56 "./gnumed-client.$CLIENTREV/client/wxpython/gmMultiColumnList.py "\
57 "./gnumed-client.$CLIENTREV/client/wxpython/gmMultiSash.py "\
58 "./gnumed-client.$CLIENTREV/client/wxpython/gmPatientHolder.py "\
59 "./gnumed-client.$CLIENTREV/client/wxpython/gmPlugin_Patient.py "\
60 "./gnumed-client.$CLIENTREV/client/wxpython/gmPregWidgets.py "\
61 "./gnumed-client.$CLIENTREV/client/wxpython/gmSelectPerson.py "\
62 "./gnumed-client.$CLIENTREV/client/wxpython/gmShadow.py "\
63 "./gnumed-client.$CLIENTREV/client/wxpython/gmSQLListControl.py "\
64 "./gnumed-client.$CLIENTREV/client/wxpython/gmSQLSimpleSearch.py "\
65 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmAllergiesPlugin.py "\
66 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmAU_VaccV01Plugin.py "\
67 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmClinicalWindowManager.py "\
68 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmContacts.py "\
69 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmConfigRegistry.py "\
70 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmDemographicsEditor.py "\
71 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmDrugDisplay.py "\
72 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmEMRTextDumpPlugin.py "\
73 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmGuidelines.py "\
74 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmLabJournal.py "\
75 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmManual.py "\
76 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmMultiSashedProgressNoteInputPlugin.py "\
77 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmOffice.py "\
78 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmPython.py "\
79 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmRequest.py "\
80 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmShowLab.py "\
81 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmSQL.py "\
82 "./gnumed-client.$CLIENTREV/client/wxpython/gui/gmVaccinationsPlugin.py "\
83 "./gnumed-client.$CLIENTREV/server/bootstrap/xxx-upgrade-instructions.txt "\
84 "./gnumed-client.$CLIENTREV/server/bootstrap/amis-config.set "\
85 "./gnumed-client.$CLIENTREV/server/bootstrap/bootstrap-amis.conf "\
86 "./gnumed-client.$CLIENTREV/server/bootstrap/bootstrap-archive.conf "\
87 "./gnumed-client.$CLIENTREV/server/bootstrap/install_AMIS_data.sh "\
88 "./gnumed-client.$CLIENTREV/server/bootstrap/redo-max.sh "\
89 "./gnumed-client.$CLIENTREV/server/bootstrap/update_db-v1_v2.conf "\
90 "./gnumed-client.$CLIENTREV/server/bootstrap/update_db-v1_v2.sh "\
91 "./gnumed-client.$CLIENTREV/server/sql/gmappoint.sql "\
92 "./gnumed-client.$CLIENTREV/server/sql/gmmodule.sql "\
93 "./gnumed-client.$CLIENTREV/server/sql/gmrecalls.sql "\
94 "./gnumed-client.$CLIENTREV/server/sql/update_db-v1_v2.sql "\
95 "./gnumed-client.$CLIENTREV/server/sql/gmCrossDB_FKs.sql "\
96 "./gnumed-client.$CLIENTREV/server/sql/gmCrossDB_FK-views.sql "\
97 "./gnumed-client.$CLIENTREV/server/sql/gmFormDefs.sql "\
98 "./gnumed-client.$CLIENTREV/server/sql/gmPhraseWheelTest.sql "\
99 "./gnumed-client.$CLIENTREV/server/sql/test-data/BC-Excelleris-test_patients.sql "
100
101
102 echo "cleaning up"
103 rm -R ./gnumed-client.$CLIENTREV/
104 rm -vf $CLIENTARCH
105 rm -vf $SRVARCH
106 cd ../../../../
107 ./remove-debris.sh
108 cd -
109
110
111 # create client package
112 echo "____________"
113 echo "=> client <="
114 echo "============"
115
116
117 # external tools
118 mkdir -p ./gnumed-client.$CLIENTREV/external-tools/
119 cp -R ../../external-tools/gm-install_arriba ./gnumed-client.$CLIENTREV/external-tools/
120 cp -R ../../external-tools/gm-download_data ./gnumed-client.$CLIENTREV/external-tools/
121 cp -R ../../external-tools/gm-download_atc ./gnumed-client.$CLIENTREV/external-tools/
122 cp -R ../../external-tools/gm-print_doc ./gnumed-client.$CLIENTREV/external-tools/
123 cp -R ../../external-tools/gm-read_chipcard.sh ./gnumed-client.$CLIENTREV/external-tools/
124 cp -R ../../external-tools/gnumed-client-init_script.sh ./gnumed-client.$CLIENTREV/external-tools/
125 cp -R ../../external-tools/gm-remove_person.sh ./gnumed-client.$CLIENTREV/external-tools/
126 cp -R ../../external-tools/gm-install_client_locally.sh ./gnumed-client.$CLIENTREV/external-tools/
127 cp -R ../../external-tools/check-prerequisites.* ./gnumed-client.$CLIENTREV/external-tools/
128 cp -R ../../external-tools/*.ahk ./gnumed-client.$CLIENTREV/external-tools/
129
130
131 # client
132 mkdir -p ./gnumed-client.$CLIENTREV/client/
133 cp -R ../../client/__init__.py ./gnumed-client.$CLIENTREV/client/
134 cp -R ../../client/gnumed.py ./gnumed-client.$CLIENTREV/client/
135 cp -R ../../client/gm-from-vcs.conf ./gnumed-client.$CLIENTREV/client/
136 cp -R ../../client/gm-from-vcs.sh ./gnumed-client.$CLIENTREV/client/
137 cp -R ../../client/gm-from-vcs.bat ./gnumed-client.$CLIENTREV/client/
138 cp -R ./gnumed ./gnumed-client.$CLIENTREV/client/
139 cp -R ./gnumed-client.desktop ./gnumed-client.$CLIENTREV/client/
140 cp -R ../../client/sitecustomize.py ./gnumed-client.$CLIENTREV/client/
141 cp -R ../../../CHANGELOG ./gnumed-client.$CLIENTREV/client/
142 cp -R ../../../LICENSE ./gnumed-client.$CLIENTREV/client/
143 cp -R ../../../GnuPublicLicense.txt ./gnumed-client.$CLIENTREV/client/
144
145
146 # bitmaps
147 mkdir -p ./gnumed-client.$CLIENTREV/client/bitmaps/
148 cp -R ../../client/bitmaps/gnumedlogo.png ./gnumed-client.$CLIENTREV/client/bitmaps/
149 cp -R ../../client/bitmaps/empty-face-in-bust.png ./gnumed-client.$CLIENTREV/client/bitmaps/
150 cp -R ../../client/bitmaps/serpent.png ./gnumed-client.$CLIENTREV/client/bitmaps/
151 cp -R ../../client/bitmaps/gm_icon-serpent_and_gnu.png ./gnumed-client.$CLIENTREV/client/bitmaps/
152 cp -R ../../client/bitmaps/gm_icon-serpent_and_gnu.ico ./gnumed-client.$CLIENTREV/client/bitmaps/
153 cp -R ../../client/bitmaps/gm_icon-serpent_and_gnu.svg ./gnumed-client.$CLIENTREV/client/bitmaps/
154 cp -R ../../client/bitmaps/gm_icon-serpent_and_gnu.xcf ./gnumed-client.$CLIENTREV/client/bitmaps/
155 cp -R ../../client/bitmaps/gm_icon-serpent_and_gnu.xpm ./gnumed-client.$CLIENTREV/client/bitmaps/
156
157 # business
158 mkdir -p ./gnumed-client.$CLIENTREV/client/business/
159 cp -R ../../client/business/*.py ./gnumed-client.$CLIENTREV/client/business/
160
161
162 # connectors
163 mkdir -p ./gnumed-client.$CLIENTREV/client/connectors/
164 cp -R ../../client/connectors/gm_ctl_client.* ./gnumed-client.$CLIENTREV/client/connectors/
165
166
167 # doc
168 mkdir -p ./gnumed-client.$CLIENTREV/client/doc/
169 cp -R ../../client/gm-from-vcs.conf ./gnumed-client.$CLIENTREV/client/doc/gnumed.conf.example
170 cp -R ../../client/doc/hook_script_example.py ./gnumed-client.$CLIENTREV/client/doc/hook_script_example.py
171 cp -R ../../client/doc/data-packs.conf.example ./gnumed-client.$CLIENTREV/client/doc/
172 cp -R ../../client/doc/man-pages/gnumed.1 ./gnumed-client.$CLIENTREV/client/doc/gnumed.1
173 cp -R ../../client/doc/man-pages/gm-print_doc.1 ./gnumed-client.$CLIENTREV/client/doc/gm-print_doc.1
174 cp -R ../../client/doc/man-pages/gm_ctl_client.1 ./gnumed-client.$CLIENTREV/client/doc/gm_ctl_client.1
175 cp -R ../../client/doc/man-pages/gm-install_arriba.8 ./gnumed-client.$CLIENTREV/client/doc/gm-install_arriba.8
176 cp -R ../../client/doc/man-pages/gm-remove_person.1 ./gnumed-client.$CLIENTREV/server/doc/
177
178
179 # etc
180 mkdir -p ./gnumed-client.$CLIENTREV/client/etc/gnumed/
181 cp -R ../../client/gm-from-vcs.conf ./gnumed-client.$CLIENTREV/client/etc/gnumed/gnumed-client.conf.example
182 cp -R ../../client/etc/gnumed/mime_type2file_extension.conf.example ./gnumed-client.$CLIENTREV/client/etc/gnumed/
183 cp -R ../../client/etc/gnumed/egk+kvk-demon.conf.example ./gnumed-client.$CLIENTREV/client/etc/gnumed/
184
185
186 # exporters
187 mkdir -p ./gnumed-client.$CLIENTREV/client/exporters/
188 cp -R ../../client/exporters/__init__.py ./gnumed-client.$CLIENTREV/client/exporters
189 cp -R ../../client/exporters/gmPatientExporter.py ./gnumed-client.$CLIENTREV/client/exporters
190
191
192 # locale
193 mkdir -p ./gnumed-client.$CLIENTREV/client/po/
194 cp -R ../../client/po/ca.po ./gnumed-client.$CLIENTREV/client/po
195 cp -R ../../client/po/de.po ./gnumed-client.$CLIENTREV/client/po
196 cp -R ../../client/po/el.po ./gnumed-client.$CLIENTREV/client/po
197 cp -R ../../client/po/es.po ./gnumed-client.$CLIENTREV/client/po
198 cp -R ../../client/po/fr.po ./gnumed-client.$CLIENTREV/client/po
199 cp -R ../../client/po/it.po ./gnumed-client.$CLIENTREV/client/po
200 cp -R ../../client/po/nb.po ./gnumed-client.$CLIENTREV/client/po
201 cp -R ../../client/po/nl.po ./gnumed-client.$CLIENTREV/client/po
202 cp -R ../../client/po/pl.po ./gnumed-client.$CLIENTREV/client/po
203 cp -R ../../client/po/pt.po ./gnumed-client.$CLIENTREV/client/po
204 cp -R ../../client/po/pt_BR.po ./gnumed-client.$CLIENTREV/client/po
205 cp -R ../../client/po/ru.po ./gnumed-client.$CLIENTREV/client/po
206 cp -R ../../client/po/ru_RU.po ./gnumed-client.$CLIENTREV/client/po
207 cp -R ../../client/po/sv.po ./gnumed-client.$CLIENTREV/client/po
208
209 cd ../../client/po/
210 ./create-gnumed_mo.sh ca
211 ./create-gnumed_mo.sh de
212 ./create-gnumed_mo.sh el
213 ./create-gnumed_mo.sh es
214 ./create-gnumed_mo.sh fr
215 ./create-gnumed_mo.sh it
216 ./create-gnumed_mo.sh nb
217 ./create-gnumed_mo.sh nl
218 ./create-gnumed_mo.sh pl
219 ./create-gnumed_mo.sh pt
220 ./create-gnumed_mo.sh pt_BR
221 ./create-gnumed_mo.sh ru
222 ./create-gnumed_mo.sh ru_RU
223 ./create-gnumed_mo.sh sv
224 cd -
225
226 cp -R ../../client/po/ca-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
227 cp -R ../../client/po/de-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
228 cp -R ../../client/po/el-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
229 cp -R ../../client/po/es-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
230 cp -R ../../client/po/fr-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
231 cp -R ../../client/po/it-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
232 cp -R ../../client/po/nb-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
233 cp -R ../../client/po/nl-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
234 cp -R ../../client/po/pl-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
235 cp -R ../../client/po/pt-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
236 cp -R ../../client/po/pt_BR-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
237 cp -R ../../client/po/ru-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
238 cp -R ../../client/po/ru_RU-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
239 cp -R ../../client/po/sv-gnumed.mo ./gnumed-client.$CLIENTREV/client/po
240
241
242 # pycommon
243 mkdir -p ./gnumed-client.$CLIENTREV/client/pycommon/
244 cp -R ../../client/pycommon/*.py ./gnumed-client.$CLIENTREV/client/pycommon/
245
246
247 # wxGladeWidgets
248 mkdir -p ./gnumed-client.$CLIENTREV/client/wxGladeWidgets/
249 cp -R ../../client/wxGladeWidgets/*.py ./gnumed-client.$CLIENTREV/client/wxGladeWidgets/
250 chmod -cR -x ./gnumed-client.$CLIENTREV/client/wxGladeWidgets/*.*
251
252
253 # wxpython
254 mkdir -p ./gnumed-client.$CLIENTREV/client/wxpython/
255 cp -R ../../client/wxpython/*.py ./gnumed-client.$CLIENTREV/client/wxpython/
256 mkdir -p ./gnumed-client.$CLIENTREV/client/wxpython/gui/
257 cp -R ../../client/wxpython/gui/*.py ./gnumed-client.$CLIENTREV/client/wxpython/gui/
258
259
260 # current User Manual
261 echo "picking up GNUmed User Manual from the web"
262 mkdir -p ./gnumed-client.$CLIENTREV/client/doc/user-manual/
263 cd ./gnumed-client.$CLIENTREV/client/doc/user-manual/
264 #wget -v -O ./GNUmed-User-Manual.zip http://wiki.gnumed.de/pub/publish/Gnumed.zip
265 #unzip GNUmed-User-Manual.zip
266 wget -v -O ./GNUmed-User-Manual.tgz http://wiki.gnumed.de/pub/publish/tgz.tgz
267 tar -xzf GNUmed-User-Manual.tgz
268 rm -vf Release-02.html
269 ln -s GnumedManual.html Gnumed/index.html
270 rm -vf GNUmed-User-Manual.tgz
271 cd -
272
273
274 # current API documentation
275 echo "downloading the API documentation"
276 mkdir -p ./gnumed-client.$CLIENTREV/client/doc/api/
277 cd ./gnumed-client.$CLIENTREV/client/doc/api/
278 wget -v -r -k -np -nd http://publicdb.gnumed.de/~ncq/gnumed/api/
279 cd -
280
281
282 # current schema documentation
283 echo "downloading SQL schema documentation"
284 mkdir -p ./gnumed-client.$CLIENTREV/client/doc/schema/
285 cd ./gnumed-client.$CLIENTREV/client/doc/schema/
286 wget -v -r -k -np -nd http://publicdb.gnumed.de/~ncq/gnumed/schema/gnumed_v17/gnumed-schema.html
287 wget -v -r -k -np -nd http://publicdb.gnumed.de/~ncq/gnumed/schema/gnumed_v17/gnumed-schema-no_audit.dot
288 cd -
289
290
291 #----------------------------------
292 # create server package
293 echo "____________"
294 echo "=> server <="
295 echo "============"
296
297
298 # scripts
299 mkdir -p ./gnumed-client.$CLIENTREV/server
300 cp -R ../../../GnuPublicLicense.txt ./gnumed-client.$CLIENTREV/server/
301
302 cp -R ../../server/gm-bootstrap_server ./gnumed-client.$CLIENTREV/server/
303 cp -R ../../server/gm-upgrade_server ./gnumed-client.$CLIENTREV/server/
304 cp -R ../../server/gm-fixup_server ./gnumed-client.$CLIENTREV/server/
305 cp -R ../../server/gm-adjust_db_settings.sh ./gnumed-client.$CLIENTREV/server/
306 cp -R ../../server/gm-fingerprint_db.py ./gnumed-client.$CLIENTREV/server/
307 cp -R ../../server/gm-dump_schema.sh ./gnumed-client.$CLIENTREV/server/
308
309 cp -R ../../server/gm-pg_upgradecluster-helper ./gnumed-client.$CLIENTREV/server/
310
311 cp -R ../../server/gm-backup_database.sh ./gnumed-client.$CLIENTREV/server/
312 cp -R ../../server/gm-restore_database.sh ./gnumed-client.$CLIENTREV/server/
313
314 cp -R ../../server/gm-backup_data.sh ./gnumed-client.$CLIENTREV/server/
315 cp -R ../../server/gm-restore_data.sh ./gnumed-client.$CLIENTREV/server/
316
317 cp -R ../../server/gm-zip+sign_backups.sh ./gnumed-client.$CLIENTREV/server/
318 cp -R ../../server/gm-move_backups_offsite.sh ./gnumed-client.$CLIENTREV/server/
319
320 cp -R ../../external-tools/gm-remove_person.sh ./gnumed-client.$CLIENTREV/server/
321
322 cp -R ../../server/gm-set_gm-dbo_password ./gnumed-client.$CLIENTREV/server/
323
324 cp -R ../../client/__init__.py ./gnumed-client.$CLIENTREV/server/
325
326
327 # pycommon/
328 mkdir -p ./gnumed-client.$CLIENTREV/server/pycommon
329 cp -R ../../client/pycommon/*.py ./gnumed-client.$CLIENTREV/server/pycommon/
330
331
332 # bootstrap/
333 mkdir -p ./gnumed-client.$CLIENTREV/server/bootstrap
334 cp -R ../../server/bootstrap/* ./gnumed-client.$CLIENTREV/server/bootstrap/
335
336
337 # doc
338 mkdir -p ./gnumed-client.$CLIENTREV/server/doc/schema
339 cp -R ../../server/bootstrap/README ./gnumed-client.$CLIENTREV/server/doc/
340 cp -R ../../client/doc/man-pages/gm-bootstrap_server.8 ./gnumed-client.$CLIENTREV/server/doc/
341 cp -R ../../client/doc/man-pages/gm-upgrade_server.8 ./gnumed-client.$CLIENTREV/server/doc/
342 cp -R ../../client/doc/man-pages/gm-fixup_server.8 ./gnumed-client.$CLIENTREV/server/doc/
343 cp -R ../../client/doc/man-pages/gm-backup_data.8 ./gnumed-client.$CLIENTREV/server/doc/
344 cp -R ../../client/doc/man-pages/gm-backup_database.8 ./gnumed-client.$CLIENTREV/server/doc/
345 cp -R ../../client/doc/man-pages/gm-zip+sign_backups.8 ./gnumed-client.$CLIENTREV/server/doc/
346 cp -R ../../client/doc/man-pages/gm-move_backups_offsite.8 ./gnumed-client.$CLIENTREV/server/doc/
347 cp -R ../../client/doc/man-pages/gm-restore_data.8 ./gnumed-client.$CLIENTREV/server/doc/
348 cp -R ../../client/doc/man-pages/gm-restore_database.8 ./gnumed-client.$CLIENTREV/server/doc/
349 cp -R ../../client/doc/man-pages/gm-dump_schema.8 ./gnumed-client.$CLIENTREV/server/doc/
350 cp -R ../../client/doc/man-pages/gm-adjust_db_settings.8 ./gnumed-client.$CLIENTREV/server/doc/
351 cp -R ../../client/doc/man-pages/gm-remove_person.1 ./gnumed-client.$CLIENTREV/server/doc/
352 cp -R ../../client/doc/man-pages/gm-set_gm-dbo_password.8 ./gnumed-client.$CLIENTREV/server/doc/
353 cp -R ../../client/doc/man-pages/gm-fingerprint_db.8 ./gnumed-client.$CLIENTREV/server/doc/
354 cp -R ./gnumed-client.$CLIENTREV/client/doc/schema/ ./gnumed-client.$CLIENTREV/server/doc/
355
356
357 # etc
358 mkdir -p ./gnumed-client.$CLIENTREV/server/etc/gnumed/
359 cp -R ../../client/etc/gnumed/gnumed-backup.conf.example ./gnumed-client.$CLIENTREV/server/etc/gnumed/
360 cp -R ../../client/etc/gnumed/gnumed-restore.conf.example ./gnumed-client.$CLIENTREV/server/etc/gnumed/
361
362
363 # sql
364 mkdir -p ./gnumed-client.$CLIENTREV/server/sql
365 cp -R ../../server/sql/*.sql ./gnumed-client.$CLIENTREV/server/sql/
366 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/country.specific
367 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/country.specific/au
368 cp -R ../../server/sql/country.specific/au/*.sql ./gnumed-client.$CLIENTREV/server/sql/country.specific/au
369 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/country.specific/ca
370 cp -R ../../server/sql/country.specific/ca/*.sql ./gnumed-client.$CLIENTREV/server/sql/country.specific/ca
371 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/country.specific/de
372 cp -R ../../server/sql/country.specific/de/*.sql ./gnumed-client.$CLIENTREV/server/sql/country.specific/de
373 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/country.specific/es
374 cp -R ../../server/sql/country.specific/es/*.sql ./gnumed-client.$CLIENTREV/server/sql/country.specific/es
375 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/test-data
376 cp -R ../../server/sql/test-data/*.sql ./gnumed-client.$CLIENTREV/server/sql/test-data
377
378 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v2-v3
379 cp ../../server/sql/v2-v3/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v2-v3
380 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v2-v3/dynamic
381 cp -R ../../server/sql/v2-v3/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v2-v3/dynamic
382 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v2-v3/static
383 cp -R ../../server/sql/v2-v3/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v2-v3/static
384 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v2-v3/superuser
385 cp -R ../../server/sql/v2-v3/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v2-v3/superuser
386
387 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v3-v4
388 cp ../../server/sql/v3-v4/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v3-v4
389 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v3-v4/dynamic
390 cp -R ../../server/sql/v3-v4/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v3-v4/dynamic
391 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v3-v4/static
392 cp -R ../../server/sql/v3-v4/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v3-v4/static
393 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v3-v4/superuser
394 cp -R ../../server/sql/v3-v4/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v3-v4/superuser
395
396 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v4-v5
397 cp ../../server/sql/v4-v5/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v4-v5
398 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v4-v5/dynamic
399 cp -R ../../server/sql/v4-v5/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v4-v5/dynamic
400 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v4-v5/static
401 cp -R ../../server/sql/v4-v5/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v4-v5/static
402 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v4-v5/superuser
403 cp -R ../../server/sql/v4-v5/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v4-v5/superuser
404
405 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v5-v6
406 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v5-v6/dynamic
407 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v5-v6/static
408
409 cp ../../server/sql/v5-v6/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v5-v6
410 cp -R ../../server/sql/v5-v6/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v5-v6/dynamic
411 cp -R ../../server/sql/v5-v6/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v5-v6/static
412
413
414 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v6-v7
415 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v6-v7/dynamic
416 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v6-v7/static
417 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v6-v7/data
418 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v6-v7/python
419
420 cp ../../server/sql/v6-v7/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v6-v7
421 cp -R ../../server/sql/v6-v7/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v6-v7/dynamic
422 cp -R ../../server/sql/v6-v7/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v6-v7/static
423 cp -R ../../server/sql/v6-v7/data/* ./gnumed-client.$CLIENTREV/server/sql/v6-v7/data
424 cp -R ../../server/sql/v6-v7/python/*.py ./gnumed-client.$CLIENTREV/server/sql/v6-v7/python
425
426
427 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v7-v8
428 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v7-v8/dynamic
429 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v7-v8/static
430
431 cp ../../server/sql/v7-v8/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v7-v8
432 cp -R ../../server/sql/v7-v8/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v7-v8/dynamic
433 cp -R ../../server/sql/v7-v8/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v7-v8/static
434
435
436 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v8-v9
437 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v8-v9/dynamic
438 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v8-v9/static
439
440 cp ../../server/sql/v8-v9/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v8-v9
441 cp -R ../../server/sql/v8-v9/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v8-v9/dynamic
442 cp -R ../../server/sql/v8-v9/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v8-v9/static
443
444
445 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v9-v10
446 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v9-v10/dynamic
447 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v9-v10/static
448 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v9-v10/superuser
449 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v9-v10/fixups
450
451 cp ../../server/sql/v9-v10/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v9-v10
452 cp -R ../../server/sql/v9-v10/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v9-v10/dynamic
453 cp -R ../../server/sql/v9-v10/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v9-v10/static
454 cp -R ../../server/sql/v9-v10/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v9-v10/superuser
455 cp -R ../../server/sql/v9-v10/fixups/*.sql ./gnumed-client.$CLIENTREV/server/sql/v9-v10/fixups
456
457
458 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v10-v11
459 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v10-v11/dynamic
460 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v10-v11/static
461 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v10-v11/superuser
462 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v10-v11/fixups
463
464 cp ../../server/sql/v10-v11/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v10-v11
465 cp -R ../../server/sql/v10-v11/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v10-v11/dynamic
466 cp -R ../../server/sql/v10-v11/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v10-v11/static
467 cp -R ../../server/sql/v10-v11/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v10-v11/superuser
468 cp -R ../../server/sql/v10-v11/fixups/*.sql ./gnumed-client.$CLIENTREV/server/sql/v10-v11/fixups
469
470
471 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v11-v12
472 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v11-v12/dynamic
473 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v11-v12/static
474 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v11-v12/superuser
475 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v11-v12/data
476 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v11-v12/python
477
478 cp ../../server/sql/v11-v12/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v11-v12
479 cp -R ../../server/sql/v11-v12/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v11-v12/dynamic
480 cp -R ../../server/sql/v11-v12/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v11-v12/static
481 cp -R ../../server/sql/v11-v12/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v11-v12/superuser
482 cp -R ../../server/sql/v11-v12/data/* ./gnumed-client.$CLIENTREV/server/sql/v11-v12/data
483 cp -R ../../server/sql/v11-v12/python/*.py ./gnumed-client.$CLIENTREV/server/sql/v11-v12/python
484
485
486 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v12-v13
487 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v12-v13/dynamic
488 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v12-v13/static
489 #mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v12-v13/superuser
490 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v12-v13/data
491 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v12-v13/python
492 #mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v12-v13/fixups
493
494 cp ../../server/sql/v12-v13/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v12-v13
495 cp -R ../../server/sql/v12-v13/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v12-v13/dynamic
496 cp -R ../../server/sql/v12-v13/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v12-v13/static
497 #cp -R ../../server/sql/v12-v13/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v12-v13/superuser
498 cp -R ../../server/sql/v12-v13/data/* ./gnumed-client.$CLIENTREV/server/sql/v12-v13/data
499 cp -R ../../server/sql/v12-v13/python/*.py ./gnumed-client.$CLIENTREV/server/sql/v12-v13/python
500 #cp -R ../../server/sql/v12-v13/fixups/*.sql ./gnumed-client.$CLIENTREV/server/sql/v12-v13/fixups
501
502
503 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v13-v14
504 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v13-v14/dynamic
505 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v13-v14/static
506 #mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v13-v14/superuser
507 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v13-v14/data
508 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v13-v14/python
509 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v13-v14/fixups
510
511 cp ../../server/sql/v13-v14/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v13-v14
512 cp -R ../../server/sql/v13-v14/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v13-v14/dynamic
513 cp -R ../../server/sql/v13-v14/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v13-v14/static
514 #cp -R ../../server/sql/v13-v14/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v13-v14/superuser
515 cp -R ../../server/sql/v13-v14/data/* ./gnumed-client.$CLIENTREV/server/sql/v13-v14/data
516 cp -R ../../server/sql/v13-v14/python/*.py ./gnumed-client.$CLIENTREV/server/sql/v13-v14/python
517 cp -R ../../server/sql/v13-v14/fixups/*.sql ./gnumed-client.$CLIENTREV/server/sql/v13-v14/fixups
518
519
520 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v14-v15
521 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v14-v15/dynamic
522 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v14-v15/static
523 #mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v14-v15/superuser
524 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v14-v15/data
525 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v14-v15/python
526 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v14-v15/fixups
527
528 cp ../../server/sql/v14-v15/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v14-v15
529 cp -R ../../server/sql/v14-v15/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v14-v15/dynamic
530 cp -R ../../server/sql/v14-v15/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v14-v15/static
531 #cp -R ../../server/sql/v14-v15/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v14-v15/superuser
532 cp -R ../../server/sql/v14-v15/data/* ./gnumed-client.$CLIENTREV/server/sql/v14-v15/data
533 cp -R ../../server/sql/v14-v15/python/*.py ./gnumed-client.$CLIENTREV/server/sql/v14-v15/python
534 cp -R ../../server/sql/v14-v15/fixups/*.sql ./gnumed-client.$CLIENTREV/server/sql/v14-v15/fixups
535
536
537 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v15-v16
538 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v15-v16/dynamic
539 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v15-v16/static
540 #mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v15-v16/superuser
541 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v15-v16/data
542 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v15-v16/python
543 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v15-v16/fixups
544
545 cp ../../server/sql/v15-v16/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v15-v16
546 cp -R ../../server/sql/v15-v16/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v15-v16/dynamic
547 cp -R ../../server/sql/v15-v16/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v15-v16/static
548 #cp -R ../../server/sql/v15-v16/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v15-v16/superuser
549 cp -R ../../server/sql/v15-v16/data/* ./gnumed-client.$CLIENTREV/server/sql/v15-v16/data
550 cp -R ../../server/sql/v15-v16/python/*.py ./gnumed-client.$CLIENTREV/server/sql/v15-v16/python
551 cp -R ../../server/sql/v15-v16/fixups/*.sql ./gnumed-client.$CLIENTREV/server/sql/v15-v16/fixups
552
553
554 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v16-v17
555 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v16-v17/dynamic
556 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v16-v17/static
557 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v16-v17/data
558 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v16-v17/python
559 mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v16-v17/fixups
560 #mkdir -p ./gnumed-client.$CLIENTREV/server/sql/v16-v17/superuser
561
562 cp ../../server/sql/v16-v17/gm_db-gnumed_v*-fingerprint.txt ./gnumed-client.$CLIENTREV/server/sql/v16-v17
563 cp -R ../../server/sql/v16-v17/dynamic/*.sql ./gnumed-client.$CLIENTREV/server/sql/v16-v17/dynamic
564 cp -R ../../server/sql/v16-v17/static/*.sql ./gnumed-client.$CLIENTREV/server/sql/v16-v17/static
565 cp -R ../../server/sql/v16-v17/data/* ./gnumed-client.$CLIENTREV/server/sql/v16-v17/data
566 cp -R ../../server/sql/v16-v17/python/*.py ./gnumed-client.$CLIENTREV/server/sql/v16-v17/python
567 cp -R ../../server/sql/v16-v17/fixups/*.sql ./gnumed-client.$CLIENTREV/server/sql/v16-v17/fixups
568 #cp -R ../../server/sql/v16-v17/superuser/*.sql ./gnumed-client.$CLIENTREV/server/sql/v16-v17/superuser
569
570 #----------------------------------
571 # weed out unnecessary stuff
572 for fname in $FILES_REMOVE ; do
573         rm -f $fname
574 done ;
575
576
577 echo "cleaning out debris"
578 find ./ -name '*.pyc' -exec rm -v '{}' ';'
579 find ./ -name '*.py~' -exec rm -v '{}' ';'
580 find ./ -name 'wxg*.wxg~' -exec rm -v '{}' ';'
581 find ./ -name '*.log' -exec rm -v '{}' ';'
582 find ./gnumed-client.$CLIENTREV/ -name 'wxg' -type d -exec rm -v -r '{}' ';'
583
584
585 # now make tarballs
586 # - client
587 cd gnumed-client.$CLIENTREV
588 ln -sT client Gnumed
589 cd ..
590 tar -czf $CLIENTARCH ./gnumed-client.$CLIENTREV/client/ ./gnumed-client.$CLIENTREV/external-tools/ ./gnumed-client.$CLIENTREV/Gnumed
591
592 md5sum $CLIENTARCH > $CLIENTARCH.md5
593 echo "" >> $CLIENTARCH.md5
594 echo "Verify this MD5 sum by running:" >> $CLIENTARCH.md5
595 echo " md5sum $CLIENTARCH" >> $CLIENTARCH.md5
596
597 sha512sum $CLIENTARCH > $CLIENTARCH.sha512
598 echo "" >> $CLIENTARCH.sha512
599 echo "Verify this SHA512 sum by running:" >> $CLIENTARCH.sha512
600 echo " sha512sum $CLIENTARCH" >> $CLIENTARCH.sha512
601
602 # - server
603 mv gnumed-client.$CLIENTREV gnumed-server.$SRVREV
604 cd gnumed-server.$SRVREV
605 rm Gnumed
606 ln -sT server Gnumed
607 cd ..
608 tar -czf $SRVARCH ./gnumed-server.$SRVREV/server/ ./gnumed-server.$SRVREV/Gnumed
609
610 md5sum $SRVARCH > $SRVARCH.md5
611 echo "" >> $SRVARCH.md5
612 echo "Verify this MD5 sum by running:" >> $SRVARCH.md5
613 echo " md5sum $SRVARCH" >> $SRVARCH.md5
614
615 sha512sum $SRVARCH > $SRVARCH.sha512
616 echo "" >> $SRVARCH.sha512
617 echo "Verify this SHA512 sum by running:" >> $SRVARCH.sha512
618 echo " sha512sum $SRVARCH" >> $SRVARCH.sha512
619
620 # cleanup
621 rm -R ./gnumed-server.$SRVREV/
622
623 echo "include schema docs"
624
625 # upload
626 scp $CLIENTARCH $CLIENTARCH.md5 $CLIENTARCH.sha512 $SRVARCH $SRVARCH.md5 $SRVARCH.sha512 www.gnumed.de:
627
628 # post announcement ?