blob: 002d532b69464c93eec8b30d9495a5d9d59d6403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
# take location of planet config
# pull it and run planet against it
buildconfig=$1
if [ ! -z "$2" ]; then
planetname="$2"
else
planetname=`echo $buildconfig| cut -d'/' -f4`
fi
planetcmd=/usr/bin/venus-planet
buildcfgcmd="/usr/local/bin/planetconfigbuilder.py $1"
cfgfile=`$buildcfgcmd`
if [ $? != 0 ]; then
echo "could not build config file for $1"
fi
/usr/local/bin/lock-wrapper "$planetname" "$planetcmd $cfgfile"
|