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

Last change on this file since 30391 was 30391, checked in by sjm84, 8 years ago

Additional setup.sh.in file for linux-lsb VM environments. To be used instead of the existing setup.sh.in which is populated with settings for the existing mac.

  • Property svn:executable set to *
File size: 1.2 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 mkdir expeditee
34 fi
35 if ! test -f expeditee/rke-build.properties; then
36 cp $currentdir/expeditee-release-kits/rke-build.properties.in expeditee/rke-build.properties
37 fi
38 pushd expeditee
39 rke
40 exit 0
41 fi
42fi
Note: See TracBrowser for help on using the repository browser.