From 1978b7ecea22e67fc13234f3622293cf0b807174 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Mon, 4 Jan 2010 09:23:37 -0600
Subject: 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.

---
 build_tools/go.sh | 28 +++++++++++++++++++---------
 1 file 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
-- 
cgit v0.12