tazwok view chroot-scripts/gen-iso @ rev 350

typo in web/index.php
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 22 22:30:38 2011 +0100 (2011-02-22)
parents 35ceb7fc85e0
children db18d2db42c2
line source
1 #!/bin/sh
2 # Little script to cook flavor in tazwok chroot waiting
3 # for something more consistent into tazlito.
5 [ "$1" ] || { echo "Usage: gen-iso flavorname [gzip]" >&2; exit 1; }
6 source /usr/lib/slitaz/libtaz
8 [ -d "$SLITAZ_DIR/flavors" ] || ln -s $LOCAL_REPOSITORY/flavors $SLITAZ_DIR
9 if [ -d "$SLITAZ_DIR/flavors/$1" ]; then
10 source_lib report
11 export log_opt=$LOCAL_REPOSITORY/log/iso-$1.html
12 rm -f $log_opt
13 report start
14 if ! [ -x /usr/bin/tazlito ]; then
15 report step "Installing tazlito"
16 tazpkg get-install tazlito || report exit "Installation of tazlito failed."
17 fi
18 [ -d "$SLITAZ_DIR/distro" ] && rm -r $SLITAZ_DIR/distro
19 report step "Generating ISO $1"
20 cd $tmp
21 tazlito get-flavor $1 || report exit "Get flavor failed"
22 sed "/^ISO_NAME/ s/$1/$SLITAZ_VERSION-$1/" -i tazlito.conf
23 [ "$2" = gzip ] && echo "COMPRESSION=gzip" >> tazlito.conf
24 echo -e "\n" | tazlito gen-distro || report exit "Generation of iso failed"
25 cp $SLITAZ_DIR/distro/*.iso $SLITAZ_DIR/distro/*.md5 $LOCAL_REPOSITORY/iso
26 clean-chroot
27 report stop
28 else
29 echo "$SLITAZ_DIR/flavors/$1 doesn't exists." >&2
30 exit 1
31 fi