summaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools')
-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