blob: 189d2b8fb7b697b98f74a9943964c03ec0a26987 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#!/bin/bash
#
cd /build_tools/larch7
#./build_all
#exit 0
OLD=`pwd`
cd /build_tools
. /etc/makepkg.conf
clear
cd larch7 || exit 1
declare -a menuarray
menuarray=( `ls larch0/profiles/ |grep $CARCH`)
echo ${array1[@]}
element_count=${#menuarray[*]}
element_count=`expr $element_count - 1`
if [ x$1 = x ]
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]}
else
if [ x$1 = xmv ]
then
profile=MV-local
else
profile=$1
fi
fi
echo $profile
#if [ x$a = x ]
#then
# profile=${menuarray[3]}
#fi
echo "Running larch for $profile"
#time ./mklarch -f -c /tmp/$profile -p larch/profiles/$profile
time ./larch-archin -f -p larch0/profiles/$profile install && ./larch-larchify -p larch0/profiles/$profile && ./larch-live_iso -p larch0/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"
if [ -e linhes.iso ]
then
echo "moving linhes.iso to /tmp/test2.iso"
mv linhes.iso /tmp/test2.iso
ls -lah /tmp/test2.iso
fi
fi
date
cd $OLD
|