import repository from arizona
[raven.git] / push / push-nonnest-stork
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 source config
8
9 if [ ! $# -eq 2 ]
10 then
11         echo "usage: push-nonnest-stork <version> <release>"
12         exit 1
13 fi
14
15 # version and release
16 verrel=$1-$2
17
18 REPO_DIR=$REPO_NAME:/repository/stork-install
19 REPO_USER_DIR=$REPO_SSH_USERNAME$REPO_DIR
20
21 REPO_URL=$REPO_BASE_URL/stork-install
22
23 # build the list of RPMs that the client will download. This is a text file
24 # containing the URLs that the client will download to install stork.
25
26 ARCH=noarch
27
28 # client stork RPMs
29 echo http://$REPO_URL/arizona-lib-$verrel.$ARCH.rpm > /tmp/client_rpm_list
30 echo http://$REPO_URL/ravenlib-$verrel.$ARCH.rpm >> /tmp/client_rpm_list
31 echo http://$REPO_URL/stork-$verrel.$ARCH.rpm  >> /tmp/client_rpm_list
32 echo http://$REPO_URL/stork-client-config-$verrel.$ARCH.rpm  >> /tmp/client_rpm_list
33 echo http://$REPO_URL/stork-client-$verrel.$ARCH.rpm >> /tmp/client_rpm_list
34 echo http://$REPO_URL/stork-failsafe-$verrel.$ARCH.rpm >> /tmp/client_rpm_list
35 echo http://$REPO_URL/tempest-$verrel.$ARCH.rpm  >> /tmp/client_rpm_list
36 # PyXML libraries
37 #echo http://$REPO_URL/PyXML-0.8.3-6.i386.rpm >> /tmp/client_rpm_list
38 #echo http://$REPO_URL/PyXML-0.8.4-3.i386.rpm >> /tmp/client_rpm_list
39 #echo http://$REPO_URL/PyXML-0.8.4-7.i386.rpm >> /tmp/client_rpm_list
40
41 # now, copy everything to the appropriate place on the repository
42
43 scp $STORK_RPM_DIR/arizona-lib-$verrel.$ARCH.rpm \
44     $STORK_RPM_DIR/ravenlib-$verrel.$ARCH.rpm \
45     $STORK_RPM_DIR/stork-$verrel.$ARCH.rpm \
46     $STORK_RPM_DIR/stork-client-config-$verrel.$ARCH.rpm \
47     $STORK_RPM_DIR/stork-client-$verrel.$ARCH.rpm \
48     $STORK_RPM_DIR/stork-failsafe-$verrel.$ARCH.rpm \
49     $STORK_RPM_DIR/tempest-$verrel.$ARCH.rpm \
50     /tmp/client_rpm_list \
51     $REPO_USER_DIR/
52
53 #uncomment the following lines to copy the bittorrent and python files. These
54 #never change, so usually it saves time to not bother.
55 #scp $OTHER_RPM_DIR/PyXML-0.8.3-6.i386.rpm \
56 #    $OTHER_RPM_DIR/PyXML-0.8.4-3.i386.rpm \
57 #    $OTHER_RPM_DIR/PyXML-0.8.4-7.i386.rpm \
58 #    $REPO_USER_DIR/
59