tazlito rev 65

gen-liveflavor: add non-free support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 04 11:33:50 2008 +0000 (2008-05-04)
parents d23c06d2d053
children d5685cb74e67
files tazlito
line diff
     1.1 --- a/tazlito	Sat May 03 12:58:47 2008 +0000
     1.2 +++ b/tazlito	Sun May 04 11:33:50 2008 +0000
     1.3 @@ -578,7 +578,7 @@
     1.4  		'')	echo -n "Flavor name : "
     1.5  			read FLAVOR
     1.6  			[ -z "$FLAVOR" ] && exit 1;;
     1.7 -		-?|-h*|--help) cat <<EOT
     1.8 +		-?|-h*|--help) echo -e "
     1.9  
    1.10  SliTaz Live Tool - Version: $VERSION
    1.11  \033[1mUsage: \033[0m `basename $0` gen-liveflavor flavor-name [flavor-patch-file]
    1.12 @@ -586,6 +586,7 @@
    1.13  code	data
    1.14  +	package to add
    1.15  -	package to remove
    1.16 +!	non-free package to add
    1.17  ?	display message
    1.18  @	flavor description
    1.19  
    1.20 @@ -593,7 +594,7 @@
    1.21  @	Developper tools for slitaz maintainers
    1.22  +	slitaz-toolchain
    1.23  +	mercurial
    1.24 -EOT
    1.25 +"
    1.26  			exit 1;;
    1.27  		esac
    1.28  		mv /etc/tazlito/distro-packages.list \
    1.29 @@ -604,6 +605,7 @@
    1.30  			case "$action" in
    1.31  			+)	yes | tazpkg get-install $pkg;;
    1.32  			-)	yes | tazpkg remove $pkg;;
    1.33 +			!)	echo $pkg >> non-free.list;;
    1.34  			@)	DESC="$pkg";;
    1.35  			\?)	echo -en "$pkg"; read action;;
    1.36  			esac