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