~drgeo-developers/drgeo/trunk

« back to all changes in this revision

Viewing changes to make-xo-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-21"
 
8
# The packaged image
 
9
smalltalkImage="PharoCore-1.3"
 
10
 
 
11
 
 
12
# Path
 
13
vmPath="`pwd`/VMs/xo/$vm/"
 
14
vmExec="`pwd`/VMs/linux-mac-windows/vm-2010-07-13/DrGeo.app/Contents/Linux-i686/bin/squeak"
 
15
install="`pwd`/tmp"
 
16
smalltalkImagePath="`pwd`/images/$smalltalkImage.image"
 
17
installScript="`pwd`/images/install-drgeo4sugar-clean.st"
 
18
 
 
19
# Install packages, configure and clean up the image
 
20
$vmExec $smalltalkImagePath file://$installScript
 
21
 
 
22
# Package stuff
 
23
rm -rf $install
 
24
mkdir $install
 
25
# install Activity structure
 
26
rsync -a --exclude '.svn *~' `pwd`/sugar-bundle/DrGeoII.activity $install
 
27
cp `pwd`/doc/ChangeLog $install/DrGeoII.activity/
 
28
chmod +x $install/DrGeoII.activity/bin/DrGeoII.sh
 
29
# install Example files
 
30
rsync -a --exclude '.svn' --exclude '*~' `pwd`/examples $install/DrGeoII.activity/drgeo
 
31
# install VM
 
32
rsync -a --exclude '.svn' --exclude '*~' $vmPath $install/DrGeoII.activity/vm
 
33
# install Smalltalk Image
 
34
rsync -a images/drgeo.image $install/DrGeoII.activity/drgeo
 
35
# install the locales
 
36
rsync -a --exclude '.svn' --exclude '*~' i18n/locale $install/DrGeoII.activity/drgeo
 
37
 
 
38
cd $install
 
39
zip -r DrGeoII-$rel.xo DrGeoII.activity -x \*/.svn/* \*~
 
40
cd -
 
41
echo "--== DONE packaging XO bundle==--"