summaryrefslogtreecommitdiffstats
path: root/build_tools/go.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-01-04 15:23:37 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-01-04 15:23:37 (GMT)
commit1978b7ecea22e67fc13234f3622293cf0b807174 (patch)
treeeaa94415c10bd464342c877d1a52cb85d270c33d /build_tools/go.sh
parentf5160192e7f806f3cde0fa5104e627abddd1d581 (diff)
downloadlinhes_dev-1978b7ecea22e67fc13234f3622293cf0b807174.zip
go.sh: crude addition of accepting profiles on the cmdline
if not options are given it presents the menu, else it blindly uses the profile listed regardless of if it's valid or not.
Diffstat (limited to 'build_tools/go.sh')
-rwxr-xr-xbuild_tools/go.sh28
1 files changed, 19 insertions, 9 deletions
diff --git a/build_tools/go.sh b/build_tools/go.sh
index 8d93db8..2d2f685 100755
--- a/build_tools/go.sh
+++ b/build_tools/go.sh
@@ -1,5 +1,7 @@
#!/bin/bash
#
+OLD=`pwd`
+cd /build_tools
. /etc/makepkg.conf
clear
cd clarch || exit 1
@@ -10,7 +12,11 @@ echo ${array1[@]}
element_count=${#menuarray[*]}
element_count=`expr $element_count - 1`
-if [ ! x$1 = xmv ]
+
+
+
+
+if [ x$1 = x ]
then
for i in `seq 0 $element_count`
do
@@ -20,17 +26,20 @@ then
echo "Select the profile to use:"
read a
profile=${menuarray[$a]}
- pwd
- ls
+
else
- profile=MV-local
+ if [ x$1 = xmv ]
+ then
+ profile=MV-local
+ else
+ profile=$1
+ fi
fi
echo $profile
-if [ x$a = x ]
-then
-
- profile=${menuarray[3]}
-fi
+#if [ x$a = x ]
+#then
+# profile=${menuarray[3]}
+#fi
echo "Running ./mklarch -f -p larch/profiles/$profile"
time ./mklarch -f -c /tmp/$profile -p larch/profiles/$profile
@@ -44,3 +53,4 @@ else
mv /home/larchroot/.larch/mylivecd.iso /tmp/testcd-2.iso
fi
date
+cd $OLD