import repository from arizona
[raven.git] / rpm_builds / build-enduser-tar
1 #!/usr/local/bin/bash
2
3 if [ ! $# -eq 2 ]
4 then
5         echo "usage: build-enduser <version> <release>"
6         exit 1
7 fi
8
9 VER=$1
10 REL=$2
11 SOURCE=`cat source`
12 FOLDER="stork-enduser-tar-$VER"
13
14 #create a folder to do the stuff in
15 mkdir $FOLDER
16
17
18 #mv the source files we need to there
19 cp $SOURCE/2.0/python/storkutil.py $FOLDER
20 cp $SOURCE/2.0/python/arizonaconfig.py $FOLDER
21 cp $SOURCE/2.0/python/arizonareport.py $FOLDER
22 cp $SOURCE/2.0/python/storkerror.py $FOLDER
23 cp $SOURCE/2.0/python/arizonacrypt.py $FOLDER
24 cp $SOURCE/2.0/python/arizonaxml.py $FOLDER
25 cp $SOURCE/2.0/python/storkpackage.py $FOLDER
26 cp $SOURCE/2.0/python/arizonageneral.py $FOLDER
27 cp $SOURCE/2.0/python/storkpackagelist.py $FOLDER
28 cp $SOURCE/2.0/python/arizonatransfer.py $FOLDER
29 cp $SOURCE/2.0/python/securerandom.py $FOLDER
30 cp $SOURCE/2.0/python/storktransaction.py $FOLDER
31 cp $SOURCE/2.0/python/comonscript.py $FOLDER
32
33 #files for stork slice manager
34 cp $SOURCE/2.0/python/storkcurlfuncs.py $FOLDER
35 cp $SOURCE/2.0/python/storkslicemanager.py $FOLDER
36 cp $SOURCE/2.0/python/start_gui $FOLDER
37 # multi-user abilities for stork slice manager
38 cp $SOURCE/2.0/python/storkusername.py $FOLDER
39 cp $SOURCE/2.0/c/keyconvert/keyconvert $FOLDER
40 cp $SOURCE/cherryrepo/planetlabAPI.py $FOLDER
41 cp -R $SOURCE/2.0/python/transfer $FOLDER
42 cp $SOURCE/2.0/python/logging/storklog.py $FOLDER    # needed for the transfer modules
43 # images for stork slice manager
44 mkdir $FOLDER/images
45 cp $SOURCE/2.0/python/images/in-synch-1.gif $FOLDER/images
46 cp $SOURCE/2.0/python/images/out-of-synch-1.gif $FOLDER/images
47 cp $SOURCE/2.0/python/images/upload-1.gif $FOLDER/images
48 cp $SOURCE/2.0/python/images/xbutton-1.gif $FOLDER/images
49
50
51 mkdir $FOLDER/package
52 touch $FOLDER/package/__init__.py
53 cp $SOURCE/2.0/python/package/storktar.py $FOLDER/package
54 cp $SOURCE/2.0/python/package/storkrpm.py $FOLDER/package
55 cp $SOURCE/2.0/python/package/storknestrpm.py $FOLDER/package
56
57 cp $SOURCE/pyspecer/stork/default.publickey $FOLDER
58 cp $SOURCE/pyspecer/stork/client_stork.conf $FOLDER/sample-stork.conf
59
60 tar -czf SOURCES/$FOLDER.tar.gz $FOLDER
61
62 #remove the folder
63 rm -rf $FOLDER
64
65 #copy tar to RPM folder
66 mv SOURCES/$FOLDER.tar.gz RPMS/i386/$FOLDER-$REL.tar.gz
67 echo Package created: RPMS/i386/$FOLDER-$REL.tar.gz
68
69