~hilaire-fernandes/drgeo/trunk

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
#!/bin/sh

# Release number
rel="16.10a"

# The packaged VM
vm="vm-2014-06-10"
# The packaged image
smalltalkImage="Pharo3.0"
# Documentation
docPath="../doc"

# Path
vmPath="`pwd`/VMs/linux-mac-windows/$vm/DrGeo.app"
vmExec="$vmPath/Contents/Linux/pharo"
vmExec="/home/hilaire/Travaux/Developpement/iStoa/repo/trunk/build/VMs/linux/2014-05-21/iStoa.app/bin/pharo"


install="tmp"
smalltalkImagePath="`pwd`/images/$smalltalkImage.image"
installScript="`pwd`/install-drgeo-workstation.st"

# Install package and clean up image
$vmExec $smalltalkImagePath $installScript
 

# Package stuff
rm -rf $install
mkdir $install

# install VM
rsync -a --exclude '.bzr' --exclude '*~' $vmPath $install
cp ../doc/ChangeLog $install/DrGeo.app/

# install Example files
rsync -a --exclude '.bzr' `pwd`/examples $install/DrGeo.app
rsync -a --exclude '.bzr' `pwd`/examplesKids/* $install/DrGeo.app/examples/

# install Smalltalk sketches files
rsync -a --exclude '.bzr' `pwd`/SmalltalkSketches $install/DrGeo.app

# user sketches and exports folder, splash
mkdir $install/DrGeo.app/MySketches
mkdir $install/DrGeo.app/MyExports
rsync -a graphics/splash.bmp $install/DrGeo.app

# install Smalltalk Image
rsync -a images/drgeo.image $install/DrGeo.app/Contents/Resources
rsync -a images/drgeo.changes $install/DrGeo.app/Contents/Resources
# install Smalltalk Source
rsync -a images/PharoV30.sources $install/DrGeo.app/Contents/Resources

# install fonts
rsync -a fonts/*.tt? $install/DrGeo.app/Contents/Resources
# install the locales
rsync -a ../i18n/locale $install/DrGeo.app/Contents/Resources

# install doc
mkdir $install/DrGeo.app/doc
cp $docPath/WARNING $docPath/README.*.txt $docPath/README.txt $install/DrGeo.app/doc

# set exec flag
chmod +x $install/DrGeo.app/DrGeo.sh
chmod +x $install/DrGeo.app/Contents/Linux/pharo
chmod +x $install/DrGeo.app/Contents/MacOS/Pharo
cd $install
zip -r DrGeo.app-$rel.zip DrGeo.app -x \*/.bzr/* \*~
cd -
echo "--== DONE packaging universal DrGeo==--"