~hilaire-fernandes/drgeo/trunk

« back to all changes in this revision

Viewing changes to build/make-workstation-release

  • Committer: hilaire
  • Date: 2014-06-15 11:10:10 UTC
  • mto: This revision was merged to the branch mainline in revision 278.
  • Revision ID: hilaire@drgeo.eu-20140615111010-r5xg226s9kwzyu8w
build script

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Release number
 
4
rel="14.07a"
 
5
 
 
6
# The packaged VM
 
7
vm="vm-2014-06-10"
 
8
# The packaged image
 
9
smalltalkImage="Pharo3.0"
 
10
# Documentation
 
11
docPath="../doc"
 
12
doc="$docPath/fr/drgeo-html-fr.tgz"
 
13
 
 
14
# Path
 
15
vmPath="`pwd`/VMs/linux-mac-windows/$vm/DrGeo.app"
 
16
vmExec="$vmPath/Contents/Linux/pharo"
 
17
 
 
18
install="tmp"
 
19
smalltalkImagePath="`pwd`/images/$smalltalkImage.image"
 
20
installScript="`pwd`/install-drgeo-workstation.st"
 
21
 
 
22
# Install package and clean up image
 
23
$vmExec $smalltalkImagePath $installScript
 
24
 
 
25
 
 
26
# Package stuff
 
27
rm -rf $install
 
28
mkdir $install
 
29
 
 
30
# install VM
 
31
rsync -a --exclude '.bzr' --exclude '*~' $vmPath $install
 
32
cp ../doc/ChangeLog $install/DrGeo.app/
 
33
 
 
34
# install Example files
 
35
rsync -a --exclude '.bzr' `pwd`/examples $install/DrGeo.app
 
36
rsync -a --exclude '.bzr' `pwd`/examplesKids/* $install/DrGeo.app/examples/
 
37
 
 
38
# install Smalltalk sketches files
 
39
rsync -a --exclude '.bzr' `pwd`/SmalltalkSketches $install/DrGeo.app
 
40
 
 
41
# user sketches and exports folder, splash
 
42
mkdir $install/DrGeo.app/MySketches
 
43
mkdir $install/DrGeo.app/MyExports
 
44
rsync -a graphics/splash.bmp $install/DrGeo.app
 
45
 
 
46
# install Smalltalk Image
 
47
rsync -a images/drgeo.image $install/DrGeo.app/Contents/Resources
 
48
rsync -a images/drgeo.changes $install/DrGeo.app/Contents/Resources
 
49
# install Smalltalk Source
 
50
rsync -a images/PharoV20.sources $install/DrGeo.app/Contents/Resources
 
51
 
 
52
# install fonts
 
53
rsync -a fonts/*.tt? $install/DrGeo.app/Contents/Resources
 
54
# install the locales
 
55
rsync -a ../trunk/i18n/locale $install/DrGeo.app/Contents/Resources
 
56
 
 
57
# install doc
 
58
mkdir $install/DrGeo.app/doc
 
59
#tar xfz $doc -C $install/DrGeo.app/doc
 
60
cp $docPath/README.*.txt  $docPath/README.txt $install/DrGeo.app/doc
 
61
 
 
62
cd $install
 
63
zip -r DrGeo.app-$rel.zip DrGeo.app -x \*/.bzr/* \*~
 
64
cd -
 
65
echo "--== DONE packaging unversal DrGeo==--"