import repository from arizona
[raven.git] / rpm_builds / push-to-repo
1 #!/bin/bash
2
3 # This script copies a version of the stork client to the stork-install
4 # directory on the repository. This is used for running the stork initscript
5 # without a working nest.
6
7 if [ ! $# -eq 2 ]
8 then
9         echo "usage: push-to-repo <version> <release>"
10         exit 1
11 fi
12
13 # version and release
14 verrel=$1-$2
15
16 # define to be username@ if you need to use a different username for scp to or
17 # from the repository. Leave blank otherwise.
18 USERNAME=
19 #USERNAME=bakers@
20
21 REPO_NAME=stork-repository.cs.arizona.edu
22 REPO_DIR=$REPO_NAME:/repository/stork-install
23 REPO_USER_DIR=$USERNAME$REPO_DIR
24
25 REPO_URL=$REPO_NAME/stork-install
26
27 # build the list of RPMs that the client will download
28
29 # client stork RPMs
30 echo http://$REPO_URL/arizona-lib-$verrel.i386.rpm > /tmp/client_rpm_list
31 echo http://$REPO_URL/stork-client-config-$verrel.i386.rpm  >> /tmp/client_rpm_list
32 echo http://$REPO_URL/stork-client-$verrel.i386.rpm >> /tmp/client_rpm_list
33 # PyXML libraries
34 echo http://$REPO_URL/PyXML-0.8.3-6.i386.rpm >> /tmp/client_rpm_list
35 echo http://$REPO_URL/PyXML-0.8.4-3.i386.rpm >> /tmp/client_rpm_list
36 # BitTorrent
37 echo http://$REPO_URL/BitTorrent-4.0.4-1.noarch.rpm >> /tmp/client_rpm_list
38 # Python version checker script
39 echo http://$REPO_URL/python_version_check >> /tmp/client_rpm_list
40
41 scp RPMS/i386/arizona-lib-$verrel.i386.rpm \
42     RPMS/i386/stork-client-config-$verrel.i386.rpm \
43     RPMS/i386/stork-client-$verrel.i386.rpm \
44     /appman-stork2/remote/do_install/BitTorrent-4.0.4-1.noarch.rpm \
45     /appman-stork2/remote/do_install/PyXML-0.8.3-6.i386.rpm \
46     /appman-stork2/remote/do_install/PyXML-0.8.4-3.i386.rpm \
47     /appman-stork2/remote/scripts/python_version_check \
48     /tmp/client_rpm_list \
49     $REPO_USER_DIR/
50
51 # no need to copy the nest yet, but if we ever do need to....
52 #scp RPMS/i386/stork-nest-$verrel.i386.rpm $REPO_USER_DIR/
53 #scp RPMS/i386/stork-nest-config-$verrel.i386.rpm $REPO_USER_DIR/
54 #scp RPMS/i386/stork-planetlab-$verrel.i386.rpm $REPO_USER_DIR/