~drgeo-developers/drgeo/trunk

« back to all changes in this revision

Viewing changes to make-workstation-release

  • Committer: Hilaire Fernandes
  • Date: 2012-01-27 21:15:40 UTC
  • Revision ID: hilaire.fernandes@gmail.com-20120127211540-912spf97bhpx6mve
Initial additions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Release number
 
4
rel="11.12"
 
5
 
 
6
# The packaged VM
 
7
vm="vm-2010-07-13"
 
8
# The packaged image
 
9
smalltalkImage="PharoCore-1.3"
 
10
# Documentation
 
11
doc="/home/hilaire/Travaux/these/inria-istoa/istoa/drgeo2/doc/fr/drgeo-html-fr.tgz"
 
12
 
 
13
# Path
 
14
vmPath="`pwd`/VMs/linux-mac-windows/$vm/DrGeo.app"
 
15
vmExec="$vmPath/Contents/Linux-i686/bin/squeak"
 
16
install="tmp"
 
17
smalltalkImagePath="`pwd`/images/$smalltalkImage.image"
 
18
installScript="`pwd`/images/install-drgeo-clean.st"
 
19
 
 
20
# Install package and clean up image
 
21
$vmExec $smalltalkImagePath $installScript
 
22
 
 
23
 
 
24
# Package stuff
 
25
rm -rf $install
 
26
mkdir $install
 
27
 
 
28
# install VM
 
29
rsync -a --exclude '.svn' --exclude '*~' $vmPath $install
 
30
cp `pwd`/doc/ChangeLog $install/DrGeo.app/
 
31
# install Example files
 
32
rsync -a --exclude '.svn' --exclude '*~' `pwd`/examples $install/DrGeo.app
 
33
# user sketches and exports folder
 
34
mkdir $install/DrGeo.app/MySketches
 
35
mkdir $install/DrGeo.app/MyExports
 
36
# install Smalltalk Image
 
37
rsync -a images/drgeo.image $install/DrGeo.app/Contents/Resources
 
38
rsync -a images/drgeo.changes $install/DrGeo.app/Contents/Resources
 
39
# install Smalltalk Source
 
40
rsync -a images/PharoV10.sources $install/DrGeo.app/Contents/Resources
 
41
# install the locales
 
42
rsync -a --exclude '.svn' --exclude '*~' i18n/locale $install/DrGeo.app/Contents/Resources
 
43
# install doc
 
44
mkdir $install/DrGeo.app/doc
 
45
tar xfz $doc -C $install/DrGeo.app/doc
 
46
 
 
47
cd $install
 
48
zip -r DrGeo.app-$rel.zip DrGeo.app -x \*/.svn/* \*~
 
49
cd -
 
50
echo "--== DONE packaging unversal DrGeo==--"