tazlito rev 253

Move tazlitobox to oldstuff
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 14 00:10:09 2012 +0100 (2012-03-14)
parents 75bedb57f724
children 44d0148872fb
files COPYING Makefile applications/tazlito-wiz.desktop applications/tazlitobox.desktop oldstuff/tazlito.png oldstuff/tazlitobox pixmaps/tazlito.png tazlito tazlitobox
line diff
     1.1 --- a/COPYING	Tue Mar 13 21:38:18 2012 +0100
     1.2 +++ b/COPYING	Wed Mar 14 00:10:09 2012 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4  ===============================================================================
     1.5  
     1.6  
     1.7 -Copyright (c)  2007-2011  SliTaz GNU/Linux
     1.8 +Copyright (c)  2007-2012  SliTaz GNU/Linux
     1.9  
    1.10  
    1.11  Français
     2.1 --- a/Makefile	Tue Mar 13 21:38:18 2012 +0100
     2.2 +++ b/Makefile	Wed Mar 14 00:10:09 2012 +0100
     2.3 @@ -11,19 +11,20 @@
     2.4  # i18n.
     2.5  
     2.6  pot:
     2.7 -	xgettext -o po/tazlitobox/tazlitobox.pot -L Shell ./tazlitobox
     2.8 +	xgettext -o po/tazlito-wiz/tazlito-wiz.pot -L Shell \
     2.9 +		--package-name="TazLito Wiz" ./tazlito-wiz
    2.10  
    2.11  msgmerge:
    2.12  	@for l in $(LINGUAS); do \
    2.13  		echo -n "Updating $$l po file."; \
    2.14 -		msgmerge -U po/tazlitobox/$$l.po po/tazlitobox/tazlitobox.pot ; \
    2.15 +		msgmerge -U po/tazlito-wiz/$$l.po po/tazlito-wiz/tazlito-wiz.pot ; \
    2.16  	done;
    2.17  
    2.18  msgfmt:
    2.19  	@for l in $(LINGUAS); do \
    2.20  		echo "Compiling $$l mo file..."; \
    2.21  		mkdir -p po/mo/$$l/LC_MESSAGES; \
    2.22 -		msgfmt -o po/mo/$$l/LC_MESSAGES/tazlitobox.mo po/tazlitobox/$$l.po ; \
    2.23 +		msgfmt -o po/mo/$$l/LC_MESSAGES/tazlito-wiz.mo po/tazlito-wiz/$$l.po ; \
    2.24  	done;
    2.25  
    2.26  # Installation.
    2.27 @@ -32,13 +33,12 @@
    2.28  install: msgfmt
    2.29  	@echo "Installing Tazlito into $(PREFIX)/bin..."
    2.30  	install -g root -o root -m 0777 tazlito $(PREFIX)/bin
    2.31 -	install -g root -o root -m 0777 tazlitobox $(PREFIX)/bin
    2.32 +	install -g root -o root -m 0777 tazlito-wiz $(PREFIX)/bin
    2.33  	install -g root -o root -m 0755 -d /etc/tazlito
    2.34  	install -g root -o root -m 0644 tazlito.conf /etc/tazlito
    2.35 -	#install -g root -o root -m 0644 distro-packages.list /etc/tazlito
    2.36  	@echo "Installing Tazlito documentation..."
    2.37  	install -g root -o root -m 0755 -d /usr/share/doc/tazlito
    2.38 -	install -g root -o root -m 0644 doc/tazlito.en.html /usr/share/doc/tazlito
    2.39 +	install -g root -o root -m 0644 doc/*.html /usr/share/doc/tazlito
    2.40  	# i18n
    2.41  	mkdir -p $(DESTDIR)$(PREFIX)/share/locale
    2.42  	cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
    2.43 @@ -47,7 +47,7 @@
    2.44  
    2.45  uninstall:
    2.46  	rm -f $(PREFIX)/bin/tazlito
    2.47 -	rm -f $(PREFIX)/bin/tazlitobox
    2.48 +	rm -f $(PREFIX)/bin/tazlito-wiz
    2.49  	rm -rf /etc/tazlito
    2.50  	rm -rf /usr/share/doc/tazlito
    2.51  	rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/tazlito*.mo
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/applications/tazlito-wiz.desktop	Wed Mar 14 00:10:09 2012 +0100
     3.3 @@ -0,0 +1,8 @@
     3.4 +[Desktop Entry]
     3.5 +Encoding=UTF-8
     3.6 +Name=Create a LiveCD
     3.7 +Name[fr]=Créer un LiveCD
     3.8 +Exec=subox tazlito-wiz
     3.9 +Icon=slitaz-icon
    3.10 +Type=Application
    3.11 +Categories=System;
     4.1 --- a/applications/tazlitobox.desktop	Tue Mar 13 21:38:18 2012 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,8 +0,0 @@
     4.4 -[Desktop Entry]
     4.5 -Encoding=UTF-8
     4.6 -Name=Create a LiveCD
     4.7 -Name[fr]=Créer un LiveCD
     4.8 -Exec=subox tazlitobox
     4.9 -Icon=tazlito
    4.10 -Type=Application
    4.11 -Categories=System;
     5.1 Binary file oldstuff/tazlito.png has changed
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/oldstuff/tazlitobox	Wed Mar 14 00:10:09 2012 +0100
     6.3 @@ -0,0 +1,662 @@
     6.4 +#!/bin/sh
     6.5 +# 
     6.6 +# Gtkdialog box for Tazlito - SliTaz Live Tool.
     6.7 +# Tabs are used for indent and all actions should go into functions to
     6.8 +# separate the GUI and commands.
     6.9 +#
    6.10 +# (C) GNU gpl v3 - SliTaz GNU/Linux 2011.
    6.11 +#
    6.12 +VERSION=4.0
    6.13 +
    6.14 +# Include gettext helper script.
    6.15 +. /usr/bin/gettext.sh
    6.16 +
    6.17 +# Export package name for gettext.
    6.18 +TEXTDOMAIN='tazusbbox'
    6.19 +export TEXTDOMAIN
    6.20 +
    6.21 +export BIN=$0
    6.22 +
    6.23 +# Check if user is root.
    6.24 +check_root()
    6.25 +{
    6.26 +	if test $(id -u) != 0 ; then
    6.27 +		echo -e "
    6.28 +You must be root to run `basename $0`. Please type 'su' and 
    6.29 +root password to become super-user.\n"
    6.30 +		exit 0
    6.31 +	fi
    6.32 +}
    6.33 +
    6.34 +# We need to parse flavors.list for GTK tree.
    6.35 +list_flavors()
    6.36 +{
    6.37 +	tazlito list-flavors | grep ^[a-z] | while read line
    6.38 +	do		
    6.39 +		info=`echo -n $line | awk '{print $1 " " $2 " " $3}'`
    6.40 +		printinfo=`echo -n $line | awk '{print $1 "|" $2 "|" $3}'`
    6.41 +		echo "$printinfo|`echo $line | sed s/\"$info\"//`"
    6.42 +	done
    6.43 +}
    6.44 +
    6.45 +recharge_list()
    6.46 +{
    6.47 +	xterm -geometry 90x14 \
    6.48 +		-title "list-flavors --recharge" \
    6.49 +		-e "tazlito list-flavors --recharge | grep ^[a-z] && sleep 2"
    6.50 +}
    6.51 +
    6.52 +# When using gen-liveflavor, gen-flavor or gen-distro, a user can put some
    6.53 +# addfiles copied into the rootfs.
    6.54 +addfiles_action()
    6.55 +{
    6.56 +	cd /home/slitaz
    6.57 +	mkdir -p distro/addfiles/rootfs/usr/share/images
    6.58 +	mkdir -p distro/addfiles/rootcd
    6.59 +	file-manager distro/addfiles &
    6.60 +}
    6.61 +
    6.62 +writeiso_action()
    6.63 +{
    6.64 +	xterm -geometry 80x16 \
    6.65 +		-title "writeiso" \
    6.66 +		-e "tazlito writeiso $COMPRESSION"
    6.67 +}
    6.68 +
    6.69 +gen_liveflavor_action()
    6.70 +{
    6.71 +	cd /home/slitaz
    6.72 +	sed -i "s/ISO_NAME=.*/ISO_NAME=\"slitaz-$GEN_LIVEFLAVOR_NAME\"/" \
    6.73 +		/etc/tazlito/tazlito.conf
    6.74 +	xterm -geometry 80x16 \
    6.75 +		-title "gen-liveflavor" \
    6.76 +		-e "tazlito gen-liveflavor $GEN_LIVEFLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"
    6.77 +}
    6.78 +
    6.79 +clean_distro_action()
    6.80 +{
    6.81 +	cd /home/slitaz
    6.82 +	xterm -geometry 80x16 \
    6.83 +		-title "clean-distro" \
    6.84 +		-e "tazlito clean-distro && sleep 1"
    6.85 +}
    6.86 +
    6.87 +show_flavors()
    6.88 +{
    6.89 +	tazlito list-flavors | \
    6.90 +	awk '{if (show && $1 != "") print $1} /^==/ {show=1}'
    6.91 +}
    6.92 +
    6.93 +get_flavor_action()
    6.94 +{
    6.95 +	cd /home/slitaz
    6.96 +	xterm -geometry 80x16 \
    6.97 +		-title "get-flavor $COMMUNITY_FLAVOR" \
    6.98 +		-e "tazlito get-flavor $COMMUNITY_FLAVOR && echo -e \"----\nENTER to continue...\" && read close"
    6.99 +}
   6.100 +
   6.101 +gen_distro_action()
   6.102 +{
   6.103 +	cd /home/slitaz
   6.104 +	xterm -geometry 80x16 \
   6.105 +		-title "gen-distro" \
   6.106 +		-e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close"
   6.107 +}
   6.108 +
   6.109 +gen_flavor_action()
   6.110 +{
   6.111 +	cd /home/slitaz
   6.112 +	xterm -geometry 80x16 \
   6.113 +		-title "gen-flavor $GEN_FLAVOR_NAME" \
   6.114 +		-e "tazlito gen-flavor $GEN_FLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"
   6.115 +}
   6.116 +
   6.117 +edit_distro_script()
   6.118 +{
   6.119 +	[ ! -f $DISTRO_SCRIPT ] && echo "#!/bin/sh" > $DISTRO_SCRIPT
   6.120 +	chmod +x $DISTRO_SCRIPT
   6.121 +	editor $DISTRO_SCRIPT
   6.122 +}
   6.123 +
   6.124 +loram_action()
   6.125 +{
   6.126 +	case "$LORAM_RAM$LORAM_CDROM$LORAM_CDROM_SMALL" in
   6.127 +	falsefalsetrue)	type=smallcdrom ;;
   6.128 +	falsetruefalse)	type=cdrom ;;
   6.129 +	*)		type=ram ;;
   6.130 +	esac
   6.131 +	xterm -geometry 80x16 \
   6.132 +		-title "build loram iso image $LORAM_OUT" \
   6.133 +		-e "tazlito build-loram $LORAM_IN $LORAM_OUT $type ; echo -e \"----\nENTER to continue...\" && read close"
   6.134 +}
   6.135 +
   6.136 +merge_input()
   6.137 +{
   6.138 +	set -- $(cat /tmp/tazlito.mergelist 2> /dev/null)
   6.139 +	while [ -n "$2" ]; do
   6.140 +		echo "$2 | $1"
   6.141 +		shift 2
   6.142 +	done
   6.143 +}
   6.144 +
   6.145 +merge_add()
   6.146 +{
   6.147 +	 echo -n " $ISO_IN $ISO_RAM" >> /tmp/tazlito.mergelist
   6.148 +}
   6.149 +
   6.150 +merge_del()
   6.151 +{
   6.152 +	set -- $(cat /tmp/tazlito.mergelist)
   6.153 +	ARGS=""
   6.154 +	while [ -n "$2" ]; do
   6.155 +		case "$1" in
   6.156 +		$ISO_ITEM) ;;
   6.157 +		*)	[ -n "$ARGS" ] && ARGS="$ARGS "
   6.158 +			ARGS="$ARGS$1 $2" ;;
   6.159 +		esac
   6.160 +		shift 2
   6.161 +	done
   6.162 +	echo -n "$ARGS" > /tmp/tazlito.mergelist
   6.163 +}
   6.164 +
   6.165 +merge_args()
   6.166 +{
   6.167 +	first=true
   6.168 +	while [ -n "$2" ]; do
   6.169 +		echo "$(stat -c "%s" $1) $1 $2"
   6.170 +		shift 2
   6.171 +	done | sort -nr | while read size file ram; do
   6.172 +		if $first; then
   6.173 +			cp $file $ISO_OUT
   6.174 +			echo -n "$ram $ISO_OUT "
   6.175 +			first=false
   6.176 +			continue
   6.177 +		fi
   6.178 +		dir=$tmp/$(basename $file)
   6.179 +		mkdir $dir
   6.180 +		mount -o loop,ro $file $dir
   6.181 +		echo -n "$ram $dir/boot/rootfs.gz "
   6.182 +	done
   6.183 +}
   6.184 +
   6.185 +merge_action()
   6.186 +{
   6.187 +	set -- $(cat /tmp/tazlito.mergelist 2> /dev/null)
   6.188 +	rm -f /tmp/tazlito.mergelist
   6.189 +	tmp=/tmp/tazlitobox$$
   6.190 +	mkdir $tmp
   6.191 +	[ -n "$4" ] || return
   6.192 +	xterm -geometry 80x16 -title "build meta iso image $ISO_OUT" \
   6.193 +		-e "script -c 'tazlito merge $(merge_args $@)' && echo -e \"----\nENTER to continue...\" && read close"
   6.194 +	mv $ISO_OUT.merged $ISO_OUT
   6.195 +	for i in $tmp/*; do
   6.196 +		umount -d $i
   6.197 +	done
   6.198 +	rm -rf $tmp
   6.199 +}
   6.200 +
   6.201 +# Boxes
   6.202 +
   6.203 +export HELP='
   6.204 +<window title="Tazlito Box - Help" icon-name="media-cdrom">
   6.205 +<vbox>
   6.206 +	<text use-markup="true">
   6.207 +		<label>"
   6.208 +<b>Tazlito Box - Help</b>"
   6.209 +		</label>
   6.210 +	</text>
   6.211 +	
   6.212 +	<frame Overview>
   6.213 +		<text wrap="true" width-chars="52" use-markup="true">
   6.214 +			<label>
   6.215 +"
   6.216 +Tazlito Box is a tiny interface to the SliTaz Live Tool aka Tazlito.
   6.217 +You can simply generate a LiveCD in a few minutes, using your
   6.218 +own flavor or one from the SliTaz community. Tazlito can also 
   6.219 +generate a LiveCD flavor using all of the currently installed 
   6.220 +packages. Tazlito commands are executed in a XTerm, you can 
   6.221 +press ENTER or the mouse to close the window.
   6.222 +"
   6.223 +			</label>
   6.224 +		</text>
   6.225 +	</frame>
   6.226 +	
   6.227 +	<frame Default paths>
   6.228 +		<text wrap="true" width-chars="50" use-markup="true">
   6.229 +			<label>
   6.230 +"
   6.231 +Distro      : /home/slitaz/distro
   6.232 +Flavors    : /home/slitaz/flavors
   6.233 +Packages : /home/slitaz/packages
   6.234 +"
   6.235 +			</label>
   6.236 +		</text>
   6.237 +	</frame>
   6.238 +	
   6.239 +	<hbox>
   6.240 +		<button>
   6.241 +			<input file icon="exit"></input>
   6.242 +			<action type="closewindow">HELP</action>
   6.243 +		</button>
   6.244 +	</hbox>
   6.245 +
   6.246 +</vbox>
   6.247 +</window>
   6.248 +'
   6.249 +
   6.250 +# List all flavors on the mirror.
   6.251 +export LIST_FLAVORS_BOX='
   6.252 +<window title="Community flavors list" icon-name="tazlito">
   6.253 +<vbox>
   6.254 +	<tree>
   6.255 +		<width>500</width><height>200</height>
   6.256 +		<variable>COMMUNITY_FLAVOR</variable>
   6.257 +		<label>Name|ISO|Rootfs|Description</label>
   6.258 +		<input exported_column="0">$BIN list_flavors</input>
   6.259 +	</tree>
   6.260 +	<hbox>
   6.261 +		<button>
   6.262 +			<label>Recharge list</label>
   6.263 +			<input file icon="reload"></input>
   6.264 +			<action>$BIN recharge_list</action>
   6.265 +			<action>refresh:COMMUNITY_FLAVOR</action>
   6.266 +		</button>
   6.267 +		<button>
   6.268 +			<label>Exit</label>
   6.269 +			<input file icon="exit"></input>
   6.270 +			<action type="closewindow">LIST_FLAVORS_BOX</action>
   6.271 +		</button>
   6.272 +	</hbox>
   6.273 +</vbox>
   6.274 +</window>'
   6.275 +
   6.276 +# Execute tazlito commands in a XTerm. Notebook: tab-pos="GTK_POS_LEFT"
   6.277 +export TAZLITO_BOX='
   6.278 +<window title="Tazlito Box" icon-name="media-cdrom">
   6.279 +<vbox>
   6.280 +
   6.281 +	<hbox>
   6.282 +	<text use-markup="true">
   6.283 +		<label>"<b>SliTaz Live Tool</b>"</label>
   6.284 +	</text>
   6.285 +	<pixmap>
   6.286 +		<input file>/usr/share/pixmaps/tazlito.png</input>
   6.287 +	</pixmap>
   6.288 +	</hbox>
   6.289 +
   6.290 +	<notebook labels="Writeiso|Live flavor|Flavors list|Gen flavor|Meta|Low RAM|Configuration">
   6.291 +
   6.292 +	<frame Filesystem to ISO>
   6.293 +
   6.294 +	<text wrap="true" width-chars="60" use-markup="true">
   6.295 +		<label>
   6.296 +"
   6.297 +Writeiso will generate an ISO image of the current filesystem as
   6.298 +is, including the /home directory. It is an easy way to remaster a
   6.299 +SliTaz Live system, you just have to: boot, modify, writeiso.
   6.300 +"
   6.301 +		</label>
   6.302 +	</text>
   6.303 +
   6.304 +	<hbox>
   6.305 +		<text use-markup="true">
   6.306 +			<label>"<b>Compression:</b>"</label>
   6.307 +		</text>
   6.308 +		<combobox>
   6.309 +			<variable>COMPRESSION</variable>
   6.310 +			<item>gzip</item>
   6.311 +			<item>lzma</item>
   6.312 +			<item>none</item>
   6.313 +		</combobox>
   6.314 +		<button>
   6.315 +			<label>Writeiso</label>
   6.316 +			<input file icon="forward"></input>
   6.317 +			<action>$BIN writeiso_action</action>
   6.318 +		</button>
   6.319 +	</hbox>
   6.320 +	
   6.321 +	</frame>
   6.322 +	
   6.323 +	<frame Current packages selection>
   6.324 +	
   6.325 +	<text wrap="true" width-chars="60" use-markup="true">
   6.326 +		<label>
   6.327 +"
   6.328 +Gen Live flavor will create a LiveCD based on all the currently
   6.329 +installed packages. To build the rootfs and ISO image it will use
   6.330 +original SliTaz packages. Any addfiles can be copied before
   6.331 +generating the distro.
   6.332 +"
   6.333 +		</label>
   6.334 +	</text>
   6.335 +
   6.336 +	<hbox>
   6.337 +		<text use-markup="true">
   6.338 +			<label>"<b>Flavor name :</b>"</label>
   6.339 +		</text>
   6.340 +		<entry>
   6.341 +			<default>slitaz</default>
   6.342 +			<variable>GEN_LIVEFLAVOR_NAME</variable>
   6.343 +		</entry>
   6.344 +	</hbox>
   6.345 +
   6.346 +	<hbox>
   6.347 +		<button>
   6.348 +			<label>Addfiles</label>
   6.349 +			<input file icon="gtk-open"></input>
   6.350 +			<action>$BIN addfiles_action</action>
   6.351 +		</button>
   6.352 +		<button>
   6.353 +			<label>Gen distro</label>
   6.354 +			<input file icon="forward"></input>
   6.355 +			<action>$BIN gen_liveflavor_action</action>
   6.356 +		</button>
   6.357 +		<button>
   6.358 +			<label>Clean distro</label>
   6.359 +			<input file icon="edit-clear"></input>
   6.360 +			<action>$BIN clean_distro_action</action>
   6.361 +		</button>
   6.362 +	</hbox>
   6.363 +
   6.364 +	</frame>
   6.365 +	
   6.366 +	<frame Community and personal flavors>
   6.367 +	
   6.368 +	<text wrap="true" width-chars="60" use-markup="true">
   6.369 +		<label>
   6.370 +"
   6.371 +Get and build preconfigured flavors from the community. The list of 
   6.372 +flavors can be recharged from the SliTaz mirror. Some addfiles can 
   6.373 +be copied before generating the distro.
   6.374 +"
   6.375 +		</label>
   6.376 +	</text>
   6.377 +
   6.378 +	<hbox>
   6.379 +		<text use-markup="true">
   6.380 +			<label>"<b>Flavor :</b>"</label>
   6.381 +		</text>
   6.382 +		<entry>
   6.383 +			<default>core</default>
   6.384 +			<variable>COMMUNITY_FLAVOR</variable>
   6.385 +		</entry>
   6.386 +		<button>
   6.387 +			<label>List flavors</label>
   6.388 +			<input file icon="media-cdrom"></input>
   6.389 +			<action type="launch">LIST_FLAVORS_BOX</action>
   6.390 +		</button>
   6.391 +	</hbox>
   6.392 +
   6.393 +	<hbox>
   6.394 +		<button>
   6.395 +			<label>Get flavor</label>
   6.396 +			<input file icon="forward"></input>
   6.397 +			<action>$BIN get_flavor_action</action>
   6.398 +		</button>
   6.399 +		<button>
   6.400 +			<label>Addfiles</label>
   6.401 +			<input file icon="gtk-open"></input>
   6.402 +			<action>$BIN addfiles_action</action>
   6.403 +		</button>
   6.404 +		<button>
   6.405 +			<label>Gen distro</label>
   6.406 +			<input file icon="forward"></input>
   6.407 +			<action>$BIN gen_distro_action</action>
   6.408 +		</button>
   6.409 +		<button>
   6.410 +			<label>Clean distro</label>
   6.411 +			<input file icon="edit-clear"></input>
   6.412 +			<action>$BIN clean_distro_action</action>
   6.413 +		</button>
   6.414 +	</hbox>
   6.415 +
   6.416 +	</frame>
   6.417 +	<frame Generate a flavor>
   6.418 +
   6.419 +	<text wrap="true" width-chars="60" use-markup="true">
   6.420 +		<label>
   6.421 +"
   6.422 +Gen Flavor will generate a new flavor file based on a rootfs in 
   6.423 +/home/slitaz/distro. All addfiles will be included in the flavor file.
   6.424 +"
   6.425 +		</label>
   6.426 +	</text>
   6.427 +
   6.428 +	<hbox>
   6.429 +		<text use-markup="true">
   6.430 +			<label>"<b>New flavor :</b>"</label>
   6.431 +		</text>
   6.432 +		<entry>
   6.433 +			<default>slitaz</default>
   6.434 +			<variable>GEN_FLAVOR_NAME</variable>
   6.435 +		</entry>
   6.436 +	</hbox>
   6.437 +	
   6.438 +	<hbox>
   6.439 +		<button>
   6.440 +			<label>Addfiles</label>
   6.441 +			<input file icon="gtk-open"></input>
   6.442 +			<action>$BIN addfiles_action</action>
   6.443 +		</button>
   6.444 +		<button>
   6.445 +			<label>Gen new flavor</label>
   6.446 +			<input file icon="forward"></input>
   6.447 +			<action>$BIN gen_flavor_action</action>
   6.448 +		</button>
   6.449 +	</hbox>
   6.450 +
   6.451 +	</frame>
   6.452 +	
   6.453 +	<frame Meta ISO image>
   6.454 +
   6.455 +	<vbox>
   6.456 +		<hbox>
   6.457 +			<vbox>
   6.458 +				<text wrap="true" width-chars="33" use-markup="true">
   6.459 +					<label>
   6.460 +"
   6.461 +Combines several ISO flavors like
   6.462 +nested Russian dolls. The amount
   6.463 +of RAM available at startup will be
   6.464 +used to select the utmost one. "
   6.465 +					</label>
   6.466 +				</text>
   6.467 +				<hbox>
   6.468 +					<text use-markup="true">
   6.469 +						<label>"<b>ISO input: </b> "</label>
   6.470 +					</text>
   6.471 +					<entry accept="filename">
   6.472 +						<variable>ISO_IN</variable>
   6.473 +					</entry>
   6.474 +					<button>
   6.475 +						<input file stock="gtk-open"></input>
   6.476 +						<action type="fileselect">ISO_IN</action>
   6.477 +					</button>
   6.478 +				</hbox>
   6.479 +				<hbox>
   6.480 +					<text use-markup="true">
   6.481 +						<label>"<b>RAM needed:</b>  "</label>
   6.482 +					</text>
   6.483 +					<entry>
   6.484 +						<default>128M</default>
   6.485 +						<variable>ISO_RAM</variable>
   6.486 +					</entry>
   6.487 +					<button>
   6.488 +						<input file icon="add"></input>
   6.489 +						<action>$BIN merge_add</action>
   6.490 +						<action>refresh:ISO_ITEM</action>
   6.491 +					</button>
   6.492 +				</hbox>
   6.493 +			</vbox>
   6.494 +			<tree>
   6.495 +				<width>140</width><height>50</height>
   6.496 +				<label>RAM|ISO</label>
   6.497 +				<variable>ISO_ITEM</variable>
   6.498 +				<input>$BIN merge_input</input>
   6.499 +				<action>$BIN merge_del</action>
   6.500 +				<action>refresh:ISO_ITEM</action>
   6.501 +			</tree>
   6.502 +		</hbox>
   6.503 +		<hbox>
   6.504 +			<text use-markup="true">
   6.505 +				<label>"<b>ISO output:</b>"</label>
   6.506 +			</text>
   6.507 +			<entry accept="filename">
   6.508 +				<default>meta.iso</default>
   6.509 +				<variable>ISO_OUT</variable>
   6.510 +			</entry>
   6.511 +			<button>
   6.512 +				<input file icon="go-next"></input>
   6.513 +				<label>"Build ISO"</label>
   6.514 +				<action>$BIN merge_action</action>
   6.515 +			</button>
   6.516 +		</hbox>
   6.517 +	</vbox>
   6.518 +	
   6.519 +	</frame>
   6.520 +	
   6.521 +	<frame Low RAM ISO image>
   6.522 +
   6.523 +	<vbox>
   6.524 +		<hbox>
   6.525 +	<text wrap="true" width-chars="25" use-markup="true">
   6.526 +		<label>
   6.527 +"
   6.528 +Build a Low RAM version
   6.529 +of a SliTaz ISO image.
   6.530 +The root filesystem is
   6.531 +compressed and slower.
   6.532 +"
   6.533 +		</label>
   6.534 +	</text>
   6.535 +
   6.536 +			<vbox>
   6.537 +		<radiobutton>
   6.538 +			<label>The filesystem is always in RAM.</label>
   6.539 +			<variable>LORAM_RAM</variable>
   6.540 +		</radiobutton>
   6.541 +		<radiobutton>
   6.542 +			<label>The filesystem may be on a small CDROM.</label>
   6.543 +			<variable>LORAM_CDROM_SMALL</variable>
   6.544 +		</radiobutton>
   6.545 +		<radiobutton>
   6.546 +			<label>The filesystem may be on a large CDROM.</label>
   6.547 +			<variable>LORAM_CDROM</variable>
   6.548 +		</radiobutton>
   6.549 +			</vbox>
   6.550 +		</hbox>
   6.551 +		<hbox>
   6.552 +			<text use-markup="true">
   6.553 +				<label>"<b>ISO input: </b>"</label>
   6.554 +			</text>
   6.555 +			<entry accept="filename">
   6.556 +				<variable>LORAM_IN</variable>
   6.557 +			</entry>
   6.558 +			<button>
   6.559 +				<input file stock="gtk-open"></input>
   6.560 +				<action type="fileselect">LORAM_IN</action>
   6.561 +			</button>
   6.562 +		</hbox>
   6.563 +		<hbox>
   6.564 +			<text use-markup="true">
   6.565 +				<label>"<b>ISO output:</b>"</label>
   6.566 +			</text>
   6.567 +			<entry accept="filename">
   6.568 +				<default>loram.iso</default>
   6.569 +				<variable>LORAM_OUT</variable>
   6.570 +			</entry>
   6.571 +			<button>
   6.572 +				<input file icon="go-next"></input>
   6.573 +				<label>"Build ISO"</label>
   6.574 +				<action>$BIN loram_action</action>
   6.575 +			</button>
   6.576 +		</hbox>
   6.577 +	</vbox>
   6.578 +	
   6.579 +	</frame>
   6.580 +	
   6.581 +	<frame Flavor config and packages list>
   6.582 +
   6.583 +	<text wrap="true" width-chars="60" use-markup="true">
   6.584 +		<label>
   6.585 +"
   6.586 +Before editing files you must have a flavor description. A distro
   6.587 +script can be used to perform actions into the rootfs before
   6.588 +compression.
   6.589 +"
   6.590 +		</label>
   6.591 +	</text>
   6.592 +
   6.593 +	<hbox>
   6.594 +		<text use-markup="true">
   6.595 +			<label>"<b>Flavor config :</b>"</label>
   6.596 +		</text>
   6.597 +		<entry>
   6.598 +			<default>/home/slitaz/tazlito.conf</default>
   6.599 +			<variable>CONFIG_FILE</variable>
   6.600 +		</entry>
   6.601 +		<button>
   6.602 +			<input file icon="accessories-text-editor"></input>
   6.603 +			<action>editor $CONFIG_FILE</action>
   6.604 +		</button>
   6.605 +	</hbox>
   6.606 +
   6.607 +	<hbox>
   6.608 +		<text use-markup="true">
   6.609 +			<label>"<b>Packages list :</b>"</label>
   6.610 +		</text>
   6.611 +		<entry>
   6.612 +			<default>/home/slitaz/distro-packages.list</default>
   6.613 +			<variable>PKGS_LIST</variable>
   6.614 +		</entry>
   6.615 +		<button>
   6.616 +			<input file icon="accessories-text-editor"></input>
   6.617 +			<action>editor $PKGS_LIST</action>
   6.618 +		</button>
   6.619 +	</hbox>
   6.620 +
   6.621 +	<hbox>
   6.622 +		<text use-markup="true">
   6.623 +			<label>"<b>Distro script :</b> "</label>
   6.624 +		</text>
   6.625 +		<entry>
   6.626 +			<default>/home/slitaz/distro.sh</default>
   6.627 +			<variable>DISTRO_SCRIPT</variable>
   6.628 +		</entry>
   6.629 +		<button>
   6.630 +			<input file icon="accessories-text-editor"></input>
   6.631 +			<action>$BIN edit_distro_script</action>
   6.632 +		</button>
   6.633 +	</hbox>
   6.634 +
   6.635 +	</frame>
   6.636 +
   6.637 +	</notebook>
   6.638 +
   6.639 +	<hbox>
   6.640 +		<button help>
   6.641 +			<input file icon="help-browser"></input>
   6.642 +			<action type="launch">HELP</action>
   6.643 +		</button>
   6.644 +		<button>
   6.645 +			<label>Exit</label>
   6.646 +			<input file icon="exit"></input>
   6.647 +			<action type="exit">Exit</action>
   6.648 +		</button>
   6.649 +	</hbox>
   6.650 +
   6.651 +</vbox>
   6.652 +</window>
   6.653 +'
   6.654 +
   6.655 +case $1 in
   6.656 +	*_*)
   6.657 +		# Exec all functions called by args (must have an underscore).
   6.658 +		$1 ;;
   6.659 +	*)
   6.660 +		# Tazlitobox action.
   6.661 +		check_root
   6.662 +		gtkdialog --center --program=TAZLITO_BOX ;;
   6.663 +esac
   6.664 +
   6.665 +exit 0
     7.1 Binary file pixmaps/tazlito.png has changed
     8.1 --- a/tazlito	Tue Mar 13 21:38:18 2012 +0100
     8.2 +++ b/tazlito	Wed Mar 14 00:10:09 2012 +0100
     8.3 @@ -7,12 +7,12 @@
     8.4  # and/or a new ISO. Most commands must be run by root, except the stats
     8.5  # and the configuration file manipulation.
     8.6  #
     8.7 -# (C) 2007-2011 SliTaz - GNU General Public License.
     8.8 +# (C) 2007-2012 SliTaz - GNU General Public License.
     8.9  #
    8.10  # Authors : Christophe Lincoln <pankso@slitaz.org>
    8.11  #           Pascal Bellard <pascal.bellard@slitaz.org>
    8.12  #
    8.13 -VERSION=4.3.1
    8.14 +VERSION=4.5
    8.15  
    8.16  # Tazlito configuration variables to be shorter
    8.17  # and to use words rather than numbers.
     9.1 --- a/tazlitobox	Tue Mar 13 21:38:18 2012 +0100
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,662 +0,0 @@
     9.4 -#!/bin/sh
     9.5 -# 
     9.6 -# Gtkdialog box for Tazlito - SliTaz Live Tool.
     9.7 -# Tabs are used for indent and all actions should go into functions to
     9.8 -# separate the GUI and commands.
     9.9 -#
    9.10 -# (C) GNU gpl v3 - SliTaz GNU/Linux 2011.
    9.11 -#
    9.12 -VERSION=4.0
    9.13 -
    9.14 -# Include gettext helper script.
    9.15 -. /usr/bin/gettext.sh
    9.16 -
    9.17 -# Export package name for gettext.
    9.18 -TEXTDOMAIN='tazusbbox'
    9.19 -export TEXTDOMAIN
    9.20 -
    9.21 -export BIN=$0
    9.22 -
    9.23 -# Check if user is root.
    9.24 -check_root()
    9.25 -{
    9.26 -	if test $(id -u) != 0 ; then
    9.27 -		echo -e "
    9.28 -You must be root to run `basename $0`. Please type 'su' and 
    9.29 -root password to become super-user.\n"
    9.30 -		exit 0
    9.31 -	fi
    9.32 -}
    9.33 -
    9.34 -# We need to parse flavors.list for GTK tree.
    9.35 -list_flavors()
    9.36 -{
    9.37 -	tazlito list-flavors | grep ^[a-z] | while read line
    9.38 -	do		
    9.39 -		info=`echo -n $line | awk '{print $1 " " $2 " " $3}'`
    9.40 -		printinfo=`echo -n $line | awk '{print $1 "|" $2 "|" $3}'`
    9.41 -		echo "$printinfo|`echo $line | sed s/\"$info\"//`"
    9.42 -	done
    9.43 -}
    9.44 -
    9.45 -recharge_list()
    9.46 -{
    9.47 -	xterm -geometry 90x14 \
    9.48 -		-title "list-flavors --recharge" \
    9.49 -		-e "tazlito list-flavors --recharge | grep ^[a-z] && sleep 2"
    9.50 -}
    9.51 -
    9.52 -# When using gen-liveflavor, gen-flavor or gen-distro, a user can put some
    9.53 -# addfiles copied into the rootfs.
    9.54 -addfiles_action()
    9.55 -{
    9.56 -	cd /home/slitaz
    9.57 -	mkdir -p distro/addfiles/rootfs/usr/share/images
    9.58 -	mkdir -p distro/addfiles/rootcd
    9.59 -	file-manager distro/addfiles &
    9.60 -}
    9.61 -
    9.62 -writeiso_action()
    9.63 -{
    9.64 -	xterm -geometry 80x16 \
    9.65 -		-title "writeiso" \
    9.66 -		-e "tazlito writeiso $COMPRESSION"
    9.67 -}
    9.68 -
    9.69 -gen_liveflavor_action()
    9.70 -{
    9.71 -	cd /home/slitaz
    9.72 -	sed -i "s/ISO_NAME=.*/ISO_NAME=\"slitaz-$GEN_LIVEFLAVOR_NAME\"/" \
    9.73 -		/etc/tazlito/tazlito.conf
    9.74 -	xterm -geometry 80x16 \
    9.75 -		-title "gen-liveflavor" \
    9.76 -		-e "tazlito gen-liveflavor $GEN_LIVEFLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"
    9.77 -}
    9.78 -
    9.79 -clean_distro_action()
    9.80 -{
    9.81 -	cd /home/slitaz
    9.82 -	xterm -geometry 80x16 \
    9.83 -		-title "clean-distro" \
    9.84 -		-e "tazlito clean-distro && sleep 1"
    9.85 -}
    9.86 -
    9.87 -show_flavors()
    9.88 -{
    9.89 -	tazlito list-flavors | \
    9.90 -	awk '{if (show && $1 != "") print $1} /^==/ {show=1}'
    9.91 -}
    9.92 -
    9.93 -get_flavor_action()
    9.94 -{
    9.95 -	cd /home/slitaz
    9.96 -	xterm -geometry 80x16 \
    9.97 -		-title "get-flavor $COMMUNITY_FLAVOR" \
    9.98 -		-e "tazlito get-flavor $COMMUNITY_FLAVOR && echo -e \"----\nENTER to continue...\" && read close"
    9.99 -}
   9.100 -
   9.101 -gen_distro_action()
   9.102 -{
   9.103 -	cd /home/slitaz
   9.104 -	xterm -geometry 80x16 \
   9.105 -		-title "gen-distro" \
   9.106 -		-e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close"
   9.107 -}
   9.108 -
   9.109 -gen_flavor_action()
   9.110 -{
   9.111 -	cd /home/slitaz
   9.112 -	xterm -geometry 80x16 \
   9.113 -		-title "gen-flavor $GEN_FLAVOR_NAME" \
   9.114 -		-e "tazlito gen-flavor $GEN_FLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"
   9.115 -}
   9.116 -
   9.117 -edit_distro_script()
   9.118 -{
   9.119 -	[ ! -f $DISTRO_SCRIPT ] && echo "#!/bin/sh" > $DISTRO_SCRIPT
   9.120 -	chmod +x $DISTRO_SCRIPT
   9.121 -	editor $DISTRO_SCRIPT
   9.122 -}
   9.123 -
   9.124 -loram_action()
   9.125 -{
   9.126 -	case "$LORAM_RAM$LORAM_CDROM$LORAM_CDROM_SMALL" in
   9.127 -	falsefalsetrue)	type=smallcdrom ;;
   9.128 -	falsetruefalse)	type=cdrom ;;
   9.129 -	*)		type=ram ;;
   9.130 -	esac
   9.131 -	xterm -geometry 80x16 \
   9.132 -		-title "build loram iso image $LORAM_OUT" \
   9.133 -		-e "tazlito build-loram $LORAM_IN $LORAM_OUT $type ; echo -e \"----\nENTER to continue...\" && read close"
   9.134 -}
   9.135 -
   9.136 -merge_input()
   9.137 -{
   9.138 -	set -- $(cat /tmp/tazlito.mergelist 2> /dev/null)
   9.139 -	while [ -n "$2" ]; do
   9.140 -		echo "$2 | $1"
   9.141 -		shift 2
   9.142 -	done
   9.143 -}
   9.144 -
   9.145 -merge_add()
   9.146 -{
   9.147 -	 echo -n " $ISO_IN $ISO_RAM" >> /tmp/tazlito.mergelist
   9.148 -}
   9.149 -
   9.150 -merge_del()
   9.151 -{
   9.152 -	set -- $(cat /tmp/tazlito.mergelist)
   9.153 -	ARGS=""
   9.154 -	while [ -n "$2" ]; do
   9.155 -		case "$1" in
   9.156 -		$ISO_ITEM) ;;
   9.157 -		*)	[ -n "$ARGS" ] && ARGS="$ARGS "
   9.158 -			ARGS="$ARGS$1 $2" ;;
   9.159 -		esac
   9.160 -		shift 2
   9.161 -	done
   9.162 -	echo -n "$ARGS" > /tmp/tazlito.mergelist
   9.163 -}
   9.164 -
   9.165 -merge_args()
   9.166 -{
   9.167 -	first=true
   9.168 -	while [ -n "$2" ]; do
   9.169 -		echo "$(stat -c "%s" $1) $1 $2"
   9.170 -		shift 2
   9.171 -	done | sort -nr | while read size file ram; do
   9.172 -		if $first; then
   9.173 -			cp $file $ISO_OUT
   9.174 -			echo -n "$ram $ISO_OUT "
   9.175 -			first=false
   9.176 -			continue
   9.177 -		fi
   9.178 -		dir=$tmp/$(basename $file)
   9.179 -		mkdir $dir
   9.180 -		mount -o loop,ro $file $dir
   9.181 -		echo -n "$ram $dir/boot/rootfs.gz "
   9.182 -	done
   9.183 -}
   9.184 -
   9.185 -merge_action()
   9.186 -{
   9.187 -	set -- $(cat /tmp/tazlito.mergelist 2> /dev/null)
   9.188 -	rm -f /tmp/tazlito.mergelist
   9.189 -	tmp=/tmp/tazlitobox$$
   9.190 -	mkdir $tmp
   9.191 -	[ -n "$4" ] || return
   9.192 -	xterm -geometry 80x16 -title "build meta iso image $ISO_OUT" \
   9.193 -		-e "script -c 'tazlito merge $(merge_args $@)' && echo -e \"----\nENTER to continue...\" && read close"
   9.194 -	mv $ISO_OUT.merged $ISO_OUT
   9.195 -	for i in $tmp/*; do
   9.196 -		umount -d $i
   9.197 -	done
   9.198 -	rm -rf $tmp
   9.199 -}
   9.200 -
   9.201 -# Boxes
   9.202 -
   9.203 -export HELP='
   9.204 -<window title="Tazlito Box - Help" icon-name="media-cdrom">
   9.205 -<vbox>
   9.206 -	<text use-markup="true">
   9.207 -		<label>"
   9.208 -<b>Tazlito Box - Help</b>"
   9.209 -		</label>
   9.210 -	</text>
   9.211 -	
   9.212 -	<frame Overview>
   9.213 -		<text wrap="true" width-chars="52" use-markup="true">
   9.214 -			<label>
   9.215 -"
   9.216 -Tazlito Box is a tiny interface to the SliTaz Live Tool aka Tazlito.
   9.217 -You can simply generate a LiveCD in a few minutes, using your
   9.218 -own flavor or one from the SliTaz community. Tazlito can also 
   9.219 -generate a LiveCD flavor using all of the currently installed 
   9.220 -packages. Tazlito commands are executed in a XTerm, you can 
   9.221 -press ENTER or the mouse to close the window.
   9.222 -"
   9.223 -			</label>
   9.224 -		</text>
   9.225 -	</frame>
   9.226 -	
   9.227 -	<frame Default paths>
   9.228 -		<text wrap="true" width-chars="50" use-markup="true">
   9.229 -			<label>
   9.230 -"
   9.231 -Distro      : /home/slitaz/distro
   9.232 -Flavors    : /home/slitaz/flavors
   9.233 -Packages : /home/slitaz/packages
   9.234 -"
   9.235 -			</label>
   9.236 -		</text>
   9.237 -	</frame>
   9.238 -	
   9.239 -	<hbox>
   9.240 -		<button>
   9.241 -			<input file icon="exit"></input>
   9.242 -			<action type="closewindow">HELP</action>
   9.243 -		</button>
   9.244 -	</hbox>
   9.245 -
   9.246 -</vbox>
   9.247 -</window>
   9.248 -'
   9.249 -
   9.250 -# List all flavors on the mirror.
   9.251 -export LIST_FLAVORS_BOX='
   9.252 -<window title="Community flavors list" icon-name="tazlito">
   9.253 -<vbox>
   9.254 -	<tree>
   9.255 -		<width>500</width><height>200</height>
   9.256 -		<variable>COMMUNITY_FLAVOR</variable>
   9.257 -		<label>Name|ISO|Rootfs|Description</label>
   9.258 -		<input exported_column="0">$BIN list_flavors</input>
   9.259 -	</tree>
   9.260 -	<hbox>
   9.261 -		<button>
   9.262 -			<label>Recharge list</label>
   9.263 -			<input file icon="reload"></input>
   9.264 -			<action>$BIN recharge_list</action>
   9.265 -			<action>refresh:COMMUNITY_FLAVOR</action>
   9.266 -		</button>
   9.267 -		<button>
   9.268 -			<label>Exit</label>
   9.269 -			<input file icon="exit"></input>
   9.270 -			<action type="closewindow">LIST_FLAVORS_BOX</action>
   9.271 -		</button>
   9.272 -	</hbox>
   9.273 -</vbox>
   9.274 -</window>'
   9.275 -
   9.276 -# Execute tazlito commands in a XTerm. Notebook: tab-pos="GTK_POS_LEFT"
   9.277 -export TAZLITO_BOX='
   9.278 -<window title="Tazlito Box" icon-name="media-cdrom">
   9.279 -<vbox>
   9.280 -
   9.281 -	<hbox>
   9.282 -	<text use-markup="true">
   9.283 -		<label>"<b>SliTaz Live Tool</b>"</label>
   9.284 -	</text>
   9.285 -	<pixmap>
   9.286 -		<input file>/usr/share/pixmaps/tazlito.png</input>
   9.287 -	</pixmap>
   9.288 -	</hbox>
   9.289 -
   9.290 -	<notebook labels="Writeiso|Live flavor|Flavors list|Gen flavor|Meta|Low RAM|Configuration">
   9.291 -
   9.292 -	<frame Filesystem to ISO>
   9.293 -
   9.294 -	<text wrap="true" width-chars="60" use-markup="true">
   9.295 -		<label>
   9.296 -"
   9.297 -Writeiso will generate an ISO image of the current filesystem as
   9.298 -is, including the /home directory. It is an easy way to remaster a
   9.299 -SliTaz Live system, you just have to: boot, modify, writeiso.
   9.300 -"
   9.301 -		</label>
   9.302 -	</text>
   9.303 -
   9.304 -	<hbox>
   9.305 -		<text use-markup="true">
   9.306 -			<label>"<b>Compression:</b>"</label>
   9.307 -		</text>
   9.308 -		<combobox>
   9.309 -			<variable>COMPRESSION</variable>
   9.310 -			<item>gzip</item>
   9.311 -			<item>lzma</item>
   9.312 -			<item>none</item>
   9.313 -		</combobox>
   9.314 -		<button>
   9.315 -			<label>Writeiso</label>
   9.316 -			<input file icon="forward"></input>
   9.317 -			<action>$BIN writeiso_action</action>
   9.318 -		</button>
   9.319 -	</hbox>
   9.320 -	
   9.321 -	</frame>
   9.322 -	
   9.323 -	<frame Current packages selection>
   9.324 -	
   9.325 -	<text wrap="true" width-chars="60" use-markup="true">
   9.326 -		<label>
   9.327 -"
   9.328 -Gen Live flavor will create a LiveCD based on all the currently
   9.329 -installed packages. To build the rootfs and ISO image it will use
   9.330 -original SliTaz packages. Any addfiles can be copied before
   9.331 -generating the distro.
   9.332 -"
   9.333 -		</label>
   9.334 -	</text>
   9.335 -
   9.336 -	<hbox>
   9.337 -		<text use-markup="true">
   9.338 -			<label>"<b>Flavor name :</b>"</label>
   9.339 -		</text>
   9.340 -		<entry>
   9.341 -			<default>slitaz</default>
   9.342 -			<variable>GEN_LIVEFLAVOR_NAME</variable>
   9.343 -		</entry>
   9.344 -	</hbox>
   9.345 -
   9.346 -	<hbox>
   9.347 -		<button>
   9.348 -			<label>Addfiles</label>
   9.349 -			<input file icon="gtk-open"></input>
   9.350 -			<action>$BIN addfiles_action</action>
   9.351 -		</button>
   9.352 -		<button>
   9.353 -			<label>Gen distro</label>
   9.354 -			<input file icon="forward"></input>
   9.355 -			<action>$BIN gen_liveflavor_action</action>
   9.356 -		</button>
   9.357 -		<button>
   9.358 -			<label>Clean distro</label>
   9.359 -			<input file icon="edit-clear"></input>
   9.360 -			<action>$BIN clean_distro_action</action>
   9.361 -		</button>
   9.362 -	</hbox>
   9.363 -
   9.364 -	</frame>
   9.365 -	
   9.366 -	<frame Community and personal flavors>
   9.367 -	
   9.368 -	<text wrap="true" width-chars="60" use-markup="true">
   9.369 -		<label>
   9.370 -"
   9.371 -Get and build preconfigured flavors from the community. The list of 
   9.372 -flavors can be recharged from the SliTaz mirror. Some addfiles can 
   9.373 -be copied before generating the distro.
   9.374 -"
   9.375 -		</label>
   9.376 -	</text>
   9.377 -
   9.378 -	<hbox>
   9.379 -		<text use-markup="true">
   9.380 -			<label>"<b>Flavor :</b>"</label>
   9.381 -		</text>
   9.382 -		<entry>
   9.383 -			<default>core</default>
   9.384 -			<variable>COMMUNITY_FLAVOR</variable>
   9.385 -		</entry>
   9.386 -		<button>
   9.387 -			<label>List flavors</label>
   9.388 -			<input file icon="media-cdrom"></input>
   9.389 -			<action type="launch">LIST_FLAVORS_BOX</action>
   9.390 -		</button>
   9.391 -	</hbox>
   9.392 -
   9.393 -	<hbox>
   9.394 -		<button>
   9.395 -			<label>Get flavor</label>
   9.396 -			<input file icon="forward"></input>
   9.397 -			<action>$BIN get_flavor_action</action>
   9.398 -		</button>
   9.399 -		<button>
   9.400 -			<label>Addfiles</label>
   9.401 -			<input file icon="gtk-open"></input>
   9.402 -			<action>$BIN addfiles_action</action>
   9.403 -		</button>
   9.404 -		<button>
   9.405 -			<label>Gen distro</label>
   9.406 -			<input file icon="forward"></input>
   9.407 -			<action>$BIN gen_distro_action</action>
   9.408 -		</button>
   9.409 -		<button>
   9.410 -			<label>Clean distro</label>
   9.411 -			<input file icon="edit-clear"></input>
   9.412 -			<action>$BIN clean_distro_action</action>
   9.413 -		</button>
   9.414 -	</hbox>
   9.415 -
   9.416 -	</frame>
   9.417 -	<frame Generate a flavor>
   9.418 -
   9.419 -	<text wrap="true" width-chars="60" use-markup="true">
   9.420 -		<label>
   9.421 -"
   9.422 -Gen Flavor will generate a new flavor file based on a rootfs in 
   9.423 -/home/slitaz/distro. All addfiles will be included in the flavor file.
   9.424 -"
   9.425 -		</label>
   9.426 -	</text>
   9.427 -
   9.428 -	<hbox>
   9.429 -		<text use-markup="true">
   9.430 -			<label>"<b>New flavor :</b>"</label>
   9.431 -		</text>
   9.432 -		<entry>
   9.433 -			<default>slitaz</default>
   9.434 -			<variable>GEN_FLAVOR_NAME</variable>
   9.435 -		</entry>
   9.436 -	</hbox>
   9.437 -	
   9.438 -	<hbox>
   9.439 -		<button>
   9.440 -			<label>Addfiles</label>
   9.441 -			<input file icon="gtk-open"></input>
   9.442 -			<action>$BIN addfiles_action</action>
   9.443 -		</button>
   9.444 -		<button>
   9.445 -			<label>Gen new flavor</label>
   9.446 -			<input file icon="forward"></input>
   9.447 -			<action>$BIN gen_flavor_action</action>
   9.448 -		</button>
   9.449 -	</hbox>
   9.450 -
   9.451 -	</frame>
   9.452 -	
   9.453 -	<frame Meta ISO image>
   9.454 -
   9.455 -	<vbox>
   9.456 -		<hbox>
   9.457 -			<vbox>
   9.458 -				<text wrap="true" width-chars="33" use-markup="true">
   9.459 -					<label>
   9.460 -"
   9.461 -Combines several ISO flavors like
   9.462 -nested Russian dolls. The amount
   9.463 -of RAM available at startup will be
   9.464 -used to select the utmost one. "
   9.465 -					</label>
   9.466 -				</text>
   9.467 -				<hbox>
   9.468 -					<text use-markup="true">
   9.469 -						<label>"<b>ISO input: </b> "</label>
   9.470 -					</text>
   9.471 -					<entry accept="filename">
   9.472 -						<variable>ISO_IN</variable>
   9.473 -					</entry>
   9.474 -					<button>
   9.475 -						<input file stock="gtk-open"></input>
   9.476 -						<action type="fileselect">ISO_IN</action>
   9.477 -					</button>
   9.478 -				</hbox>
   9.479 -				<hbox>
   9.480 -					<text use-markup="true">
   9.481 -						<label>"<b>RAM needed:</b>  "</label>
   9.482 -					</text>
   9.483 -					<entry>
   9.484 -						<default>128M</default>
   9.485 -						<variable>ISO_RAM</variable>
   9.486 -					</entry>
   9.487 -					<button>
   9.488 -						<input file icon="add"></input>
   9.489 -						<action>$BIN merge_add</action>
   9.490 -						<action>refresh:ISO_ITEM</action>
   9.491 -					</button>
   9.492 -				</hbox>
   9.493 -			</vbox>
   9.494 -			<tree>
   9.495 -				<width>140</width><height>50</height>
   9.496 -				<label>RAM|ISO</label>
   9.497 -				<variable>ISO_ITEM</variable>
   9.498 -				<input>$BIN merge_input</input>
   9.499 -				<action>$BIN merge_del</action>
   9.500 -				<action>refresh:ISO_ITEM</action>
   9.501 -			</tree>
   9.502 -		</hbox>
   9.503 -		<hbox>
   9.504 -			<text use-markup="true">
   9.505 -				<label>"<b>ISO output:</b>"</label>
   9.506 -			</text>
   9.507 -			<entry accept="filename">
   9.508 -				<default>meta.iso</default>
   9.509 -				<variable>ISO_OUT</variable>
   9.510 -			</entry>
   9.511 -			<button>
   9.512 -				<input file icon="go-next"></input>
   9.513 -				<label>"Build ISO"</label>
   9.514 -				<action>$BIN merge_action</action>
   9.515 -			</button>
   9.516 -		</hbox>
   9.517 -	</vbox>
   9.518 -	
   9.519 -	</frame>
   9.520 -	
   9.521 -	<frame Low RAM ISO image>
   9.522 -
   9.523 -	<vbox>
   9.524 -		<hbox>
   9.525 -	<text wrap="true" width-chars="25" use-markup="true">
   9.526 -		<label>
   9.527 -"
   9.528 -Build a Low RAM version
   9.529 -of a SliTaz ISO image.
   9.530 -The root filesystem is
   9.531 -compressed and slower.
   9.532 -"
   9.533 -		</label>
   9.534 -	</text>
   9.535 -
   9.536 -			<vbox>
   9.537 -		<radiobutton>
   9.538 -			<label>The filesystem is always in RAM.</label>
   9.539 -			<variable>LORAM_RAM</variable>
   9.540 -		</radiobutton>
   9.541 -		<radiobutton>
   9.542 -			<label>The filesystem may be on a small CDROM.</label>
   9.543 -			<variable>LORAM_CDROM_SMALL</variable>
   9.544 -		</radiobutton>
   9.545 -		<radiobutton>
   9.546 -			<label>The filesystem may be on a large CDROM.</label>
   9.547 -			<variable>LORAM_CDROM</variable>
   9.548 -		</radiobutton>
   9.549 -			</vbox>
   9.550 -		</hbox>
   9.551 -		<hbox>
   9.552 -			<text use-markup="true">
   9.553 -				<label>"<b>ISO input: </b>"</label>
   9.554 -			</text>
   9.555 -			<entry accept="filename">
   9.556 -				<variable>LORAM_IN</variable>
   9.557 -			</entry>
   9.558 -			<button>
   9.559 -				<input file stock="gtk-open"></input>
   9.560 -				<action type="fileselect">LORAM_IN</action>
   9.561 -			</button>
   9.562 -		</hbox>
   9.563 -		<hbox>
   9.564 -			<text use-markup="true">
   9.565 -				<label>"<b>ISO output:</b>"</label>
   9.566 -			</text>
   9.567 -			<entry accept="filename">
   9.568 -				<default>loram.iso</default>
   9.569 -				<variable>LORAM_OUT</variable>
   9.570 -			</entry>
   9.571 -			<button>
   9.572 -				<input file icon="go-next"></input>
   9.573 -				<label>"Build ISO"</label>
   9.574 -				<action>$BIN loram_action</action>
   9.575 -			</button>
   9.576 -		</hbox>
   9.577 -	</vbox>
   9.578 -	
   9.579 -	</frame>
   9.580 -	
   9.581 -	<frame Flavor config and packages list>
   9.582 -
   9.583 -	<text wrap="true" width-chars="60" use-markup="true">
   9.584 -		<label>
   9.585 -"
   9.586 -Before editing files you must have a flavor description. A distro
   9.587 -script can be used to perform actions into the rootfs before
   9.588 -compression.
   9.589 -"
   9.590 -		</label>
   9.591 -	</text>
   9.592 -
   9.593 -	<hbox>
   9.594 -		<text use-markup="true">
   9.595 -			<label>"<b>Flavor config :</b>"</label>
   9.596 -		</text>
   9.597 -		<entry>
   9.598 -			<default>/home/slitaz/tazlito.conf</default>
   9.599 -			<variable>CONFIG_FILE</variable>
   9.600 -		</entry>
   9.601 -		<button>
   9.602 -			<input file icon="accessories-text-editor"></input>
   9.603 -			<action>editor $CONFIG_FILE</action>
   9.604 -		</button>
   9.605 -	</hbox>
   9.606 -
   9.607 -	<hbox>
   9.608 -		<text use-markup="true">
   9.609 -			<label>"<b>Packages list :</b>"</label>
   9.610 -		</text>
   9.611 -		<entry>
   9.612 -			<default>/home/slitaz/distro-packages.list</default>
   9.613 -			<variable>PKGS_LIST</variable>
   9.614 -		</entry>
   9.615 -		<button>
   9.616 -			<input file icon="accessories-text-editor"></input>
   9.617 -			<action>editor $PKGS_LIST</action>
   9.618 -		</button>
   9.619 -	</hbox>
   9.620 -
   9.621 -	<hbox>
   9.622 -		<text use-markup="true">
   9.623 -			<label>"<b>Distro script :</b> "</label>
   9.624 -		</text>
   9.625 -		<entry>
   9.626 -			<default>/home/slitaz/distro.sh</default>
   9.627 -			<variable>DISTRO_SCRIPT</variable>
   9.628 -		</entry>
   9.629 -		<button>
   9.630 -			<input file icon="accessories-text-editor"></input>
   9.631 -			<action>$BIN edit_distro_script</action>
   9.632 -		</button>
   9.633 -	</hbox>
   9.634 -
   9.635 -	</frame>
   9.636 -
   9.637 -	</notebook>
   9.638 -
   9.639 -	<hbox>
   9.640 -		<button help>
   9.641 -			<input file icon="help-browser"></input>
   9.642 -			<action type="launch">HELP</action>
   9.643 -		</button>
   9.644 -		<button>
   9.645 -			<label>Exit</label>
   9.646 -			<input file icon="exit"></input>
   9.647 -			<action type="exit">Exit</action>
   9.648 -		</button>
   9.649 -	</hbox>
   9.650 -
   9.651 -</vbox>
   9.652 -</window>
   9.653 -'
   9.654 -
   9.655 -case $1 in
   9.656 -	*_*)
   9.657 -		# Exec all functions called by args (must have an underscore).
   9.658 -		$1 ;;
   9.659 -	*)
   9.660 -		# Tazlitobox action.
   9.661 -		check_root
   9.662 -		gtkdialog --center --program=TAZLITO_BOX ;;
   9.663 -esac
   9.664 -
   9.665 -exit 0