source: other-projects/expeditee-release-kits/create-expeditee.sh@ 30392

Last change on this file since 30392 was 30392, checked in by ak19, 6 years ago

Deleting expeditee snapshot before regenerating.

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2
3currentdir=`pwd`
4# set currentdir to /home/sjm84 (when on /opt/lsb) on the linux VM machines
5# that produce nightlies
6
7if ! test -f "$currentdir/expeditee-release-kits/rke-setup.sh"; then
8 echo ""
9 echo "********************"
10 echo "First edit $currentdir/expeditee-release-kits/rke-setup.sh.in"
11 echo "to generate $currentdir/expeditee-release-kits/rke-setup.sh"
12 echo ""
13 echo "********************"
14 echo ""
15 exit -1
16else
17 # rke-setup uses local paths, so cd into expeditee-release-kits first
18 # then call rke-setup.sh to source the environment vars it sets
19 pushd "$currentdir/expeditee-release-kits"
20 source "rke-setup.sh"
21 returnval=$?
22 if [ "$returnval" != "0" ]; then
23 echo "Error running rke-setup.sh, return value: $returnval"
24 popd
25 exit -2
26 else
27 popd
28
29 # Make sure the expeditee folder and its rke-build.properties file exist
30 # then run the 'rke' command from snapshots\expeditee
31 pushd "$currentdir/snapshots"
32 if test -d expeditee; then
33 echo "Deleting $currentdir/snapshots/expeditee...."
34 rm -rf $currentdir/snapshots/expeditee
35 fi
36 if ! test -d expeditee; then
37 mkdir expeditee
38 fi
39 if ! test -f expeditee/rke-build.properties; then
40 cp $currentdir/expeditee-release-kits/rke-build.properties.in expeditee/rke-build.properties
41 fi
42 pushd expeditee
43 rke
44 exit 0
45 fi
46fi
Note: See TracBrowser for help on using the repository browser.