summaryrefslogtreecommitdiffstats
path: root/build_tools/go.sh
blob: 8d93db891720fa10f59b9f1c16e86637285b8ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#
. /etc/makepkg.conf
clear
cd clarch || exit 1
declare -a menuarray
menuarray=( `ls   larch/profiles/ |grep  $CARCH`) 
echo ${array1[@]}

element_count=${#menuarray[*]}
element_count=`expr $element_count - 1`

if [ ! x$1 = xmv ]
then
	for i in `seq 0 $element_count`
	do
	 echo "$i ) ${menuarray[$i]}"
	 echo
	done
	echo "Select the profile to use:"
	read a
	profile=${menuarray[$a]}
	pwd
	ls
else
	profile=MV-local
fi
echo $profile
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

if [ $profile = "MV-local" ]
then
	echo "your $profile iso has been moved to /tmp/MV-2.iso"
	mv /home/larchroot/.larch/mylivecd.iso /tmp/MV-2.iso
else
	echo "your $profile iso has been moved to /tmp/testcd-2.iso"
	mv /home/larchroot/.larch/mylivecd.iso /tmp/testcd-2.iso
fi
date