tazlito rev 140
box: clean all code (use tab)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jan 24 01:14:53 2010 +0100 (2010-01-24) |
parents | 3f6208cdbd12 |
children | beaf878524ea |
files | tazlitobox |
line diff
1.1 --- a/tazlitobox Sat Jan 23 23:52:59 2010 +0100 1.2 +++ b/tazlitobox Sun Jan 24 01:14:53 2010 +0100 1.3 @@ -1,6 +1,10 @@ 1.4 -#! /bin/sh 1.5 +#!/bin/sh 1.6 # 1.7 # Gtkdialog box for Tazlito - SliTaz Live Tool. 1.8 +# Tabs are used for ident ans all action should go into functions to 1.9 +# separate GUI and commands. 1.10 +# 1.11 +# (C) GNU gpl v3 - SliTaz GNU/Linux 2010. 1.12 # 1.13 VERSION=2.2 1.14 1.15 @@ -45,8 +49,6 @@ 1.16 file-manager distro/addfiles & 1.17 } 1.18 1.19 -# All actions 1.20 - 1.21 writeiso_action() 1.22 { 1.23 xterm -geometry 80x16 \ 1.24 @@ -181,246 +183,252 @@ 1.25 # Execute tazlito commands in a XTerm. Notebook: tab-pos="GTK_POS_LEFT" 1.26 export TAZLITO_BOX=' 1.27 <window title="Tazlito Box" icon-name="media-cdrom"> 1.28 - <vbox> 1.29 - 1.30 - <hbox> 1.31 - <text use-markup="true"> 1.32 - <label>"<b>SliTaz Live Tool</b>"</label> 1.33 - </text> 1.34 - <pixmap> 1.35 - <input file>/usr/share/pixmaps/tazlito.png</input> 1.36 -</pixmap> 1.37 +<vbox> 1.38 1.39 -</hbox> 1.40 + <hbox> 1.41 + <text use-markup="true"> 1.42 + <label>"<b>SliTaz Live Tool</b>"</label> 1.43 + </text> 1.44 + <pixmap> 1.45 + <input file>/usr/share/pixmaps/tazlito.png</input> 1.46 + </pixmap> 1.47 + </hbox> 1.48 1.49 - <notebook labels="Writeiso|Live flavor|Flavors list|Gen flavor|Configuration"> 1.50 - 1.51 - <frame Filesystem to ISO> 1.52 - 1.53 - <text wrap="true" width-chars="60" use-markup="true"> 1.54 - <label> 1.55 + <notebook labels="Writeiso|Live flavor|Flavors list|Gen flavor|Configuration"> 1.56 + 1.57 + <frame Filesystem to ISO> 1.58 + 1.59 + <text wrap="true" width-chars="60" use-markup="true"> 1.60 + <label> 1.61 " 1.62 Writeiso will generate an ISO image of the current filesystem as 1.63 is, including the /home directory. It is an easy way to remaster a 1.64 SliTaz Live system, you just have to: boot, modify, writeiso. 1.65 " 1.66 - </label> 1.67 - </text> 1.68 + </label> 1.69 + </text> 1.70 1.71 - <hbox> 1.72 - <text use-markup="true"> 1.73 - <label>"<b>Compression (gzip,lzma,none):</b>"</label> 1.74 - </text> 1.75 - <entry> 1.76 - <default>gzip</default> 1.77 - <variable>COMPRESSION</variable> 1.78 - </entry> 1.79 - </hbox> 1.80 - 1.81 - <hbox> 1.82 - <button> 1.83 - <label>Writeiso</label> 1.84 - <input file icon="forward"></input> 1.85 - <action>$BIN writeiso_action</action> 1.86 - </button> 1.87 - </hbox> 1.88 - </frame> 1.89 - 1.90 - <frame Current packages selection> 1.91 - <text wrap="true" width-chars="60" use-markup="true"> 1.92 - <label> 1.93 + <hbox> 1.94 + <text use-markup="true"> 1.95 + <label>"<b>Compression (gzip,lzma,none):</b>"</label> 1.96 + </text> 1.97 + <entry> 1.98 + <default>gzip</default> 1.99 + <variable>COMPRESSION</variable> 1.100 + </entry> 1.101 + </hbox> 1.102 + 1.103 + <hbox> 1.104 + <button> 1.105 + <label>Writeiso</label> 1.106 + <input file icon="forward"></input> 1.107 + <action>$BIN writeiso_action</action> 1.108 + </button> 1.109 + </hbox> 1.110 + 1.111 + </frame> 1.112 + 1.113 + <frame Current packages selection> 1.114 + 1.115 + <text wrap="true" width-chars="60" use-markup="true"> 1.116 + <label> 1.117 " 1.118 Gen Live flavor will create a LiveCD based on all the currently 1.119 installed packages. To build the rootfs and ISO image it will use 1.120 original SliTaz packages. Some addfiles can be copied before 1.121 gen distro. 1.122 " 1.123 - </label> 1.124 - </text> 1.125 - 1.126 - <hbox> 1.127 - <text use-markup="true"> 1.128 - <label>"<b>Flavor name :</b>"</label> 1.129 - </text> 1.130 - <entry> 1.131 - <default>slitaz</default> 1.132 - <variable>GEN_LIVEFLAVOR_NAME</variable> 1.133 - </entry> 1.134 - </hbox> 1.135 - 1.136 - <hbox> 1.137 - <button> 1.138 - <label>Addfiles</label> 1.139 - <input file icon="gtk-open"></input> 1.140 - <action>$BIN addfiles_action</action> 1.141 - </button> 1.142 - <button> 1.143 - <label>Gen distro</label> 1.144 - <input file icon="forward"></input> 1.145 - <action>$BIN gen_liveflavor_action</action> 1.146 - </button> 1.147 - <button> 1.148 - <label>Clean distro</label> 1.149 - <input file icon="edit-clear"></input> 1.150 - <action>$BIN clean_distro_action</action> 1.151 - </button> 1.152 - </hbox> 1.153 - </frame> 1.154 - 1.155 - <frame Community and personal flavors> 1.156 - <text wrap="true" width-chars="60" use-markup="true"> 1.157 - <label> 1.158 + </label> 1.159 + </text> 1.160 + 1.161 + <hbox> 1.162 + <text use-markup="true"> 1.163 + <label>"<b>Flavor name :</b>"</label> 1.164 + </text> 1.165 + <entry> 1.166 + <default>slitaz</default> 1.167 + <variable>GEN_LIVEFLAVOR_NAME</variable> 1.168 + </entry> 1.169 + </hbox> 1.170 + 1.171 + <hbox> 1.172 + <button> 1.173 + <label>Addfiles</label> 1.174 + <input file icon="gtk-open"></input> 1.175 + <action>$BIN addfiles_action</action> 1.176 + </button> 1.177 + <button> 1.178 + <label>Gen distro</label> 1.179 + <input file icon="forward"></input> 1.180 + <action>$BIN gen_liveflavor_action</action> 1.181 + </button> 1.182 + <button> 1.183 + <label>Clean distro</label> 1.184 + <input file icon="edit-clear"></input> 1.185 + <action>$BIN clean_distro_action</action> 1.186 + </button> 1.187 + </hbox> 1.188 + 1.189 + </frame> 1.190 + 1.191 + <frame Community and personal flavors> 1.192 + 1.193 + <text wrap="true" width-chars="60" use-markup="true"> 1.194 + <label> 1.195 " 1.196 Get and build preconfigured flavors from the community. Flavors 1.197 llist can be recharged from SliTaz mirror. Some addfiles can be 1.198 copied before generating the distro. 1.199 " 1.200 - </label> 1.201 - </text> 1.202 - 1.203 - <hbox> 1.204 - <text use-markup="true"> 1.205 - <label>"<b>Flavor :</b>"</label> 1.206 - </text> 1.207 - <entry> 1.208 - <default>core</default> 1.209 - <variable>COMMUNITY_FLAVOR</variable> 1.210 - </entry> 1.211 - <button> 1.212 - <label>List flavors</label> 1.213 - <input file icon="media-cdrom"></input> 1.214 - <action type="launch">LIST_FLAVORS_BOX</action> 1.215 - </button> 1.216 - </hbox> 1.217 - 1.218 - <hbox> 1.219 - <button> 1.220 - <label>Get flavor</label> 1.221 - <input file icon="forward"></input> 1.222 - <action>$BIN get_flavor_action</action> 1.223 - </button> 1.224 - <button> 1.225 - <label>Addfiles</label> 1.226 - <input file icon="gtk-open"></input> 1.227 - <action>$BIN addfiles_action</action> 1.228 - </button> 1.229 - <button> 1.230 - <label>Gen distro</label> 1.231 - <input file icon="forward"></input> 1.232 - <action>$BIN gen_distro_action</action> 1.233 - </button> 1.234 - <button> 1.235 - <label>Clean distro</label> 1.236 - <input file icon="edit-clear"></input> 1.237 - <action>$BIN clean_distro_action</action> 1.238 - </button> 1.239 - </hbox> 1.240 - </frame> 1.241 - 1.242 - <frame Generate a flavor> 1.243 - 1.244 - <text wrap="true" width-chars="60" use-markup="true"> 1.245 - <label> 1.246 + </label> 1.247 + </text> 1.248 + 1.249 + <hbox> 1.250 + <text use-markup="true"> 1.251 + <label>"<b>Flavor :</b>"</label> 1.252 + </text> 1.253 + <entry> 1.254 + <default>core</default> 1.255 + <variable>COMMUNITY_FLAVOR</variable> 1.256 + </entry> 1.257 + <button> 1.258 + <label>List flavors</label> 1.259 + <input file icon="media-cdrom"></input> 1.260 + <action type="launch">LIST_FLAVORS_BOX</action> 1.261 + </button> 1.262 + </hbox> 1.263 + 1.264 + <hbox> 1.265 + <button> 1.266 + <label>Get flavor</label> 1.267 + <input file icon="forward"></input> 1.268 + <action>$BIN get_flavor_action</action> 1.269 + </button> 1.270 + <button> 1.271 + <label>Addfiles</label> 1.272 + <input file icon="gtk-open"></input> 1.273 + <action>$BIN addfiles_action</action> 1.274 + </button> 1.275 + <button> 1.276 + <label>Gen distro</label> 1.277 + <input file icon="forward"></input> 1.278 + <action>$BIN gen_distro_action</action> 1.279 + </button> 1.280 + <button> 1.281 + <label>Clean distro</label> 1.282 + <input file icon="edit-clear"></input> 1.283 + <action>$BIN clean_distro_action</action> 1.284 + </button> 1.285 + </hbox> 1.286 + 1.287 + </frame> 1.288 + <frame Generate a flavor> 1.289 + 1.290 + <text wrap="true" width-chars="60" use-markup="true"> 1.291 + <label> 1.292 " 1.293 Gen Flavor will generate a new flavor file based on rootfs in 1.294 /home/slitaz/distro. All addfiles will be included in the flavor file. 1.295 " 1.296 - </label> 1.297 - </text> 1.298 + </label> 1.299 + </text> 1.300 1.301 - <hbox> 1.302 - <text use-markup="true"> 1.303 - <label>"<b>New flavor :</b>"</label> 1.304 - </text> 1.305 - <entry> 1.306 - <default>slitaz</default> 1.307 - <variable>GEN_FLAVOR_NAME</variable> 1.308 - </entry> 1.309 - </hbox> 1.310 - <hbox> 1.311 - <button> 1.312 - <label>Addfiles</label> 1.313 - <input file icon="gtk-open"></input> 1.314 - <action>$BIN addfiles_action</action> 1.315 - </button> 1.316 - <button> 1.317 - <label>Gen new flavor</label> 1.318 - <input file icon="forward"></input> 1.319 - <action>$BIN gen_flavor_action</action> 1.320 - </button> 1.321 - </hbox> 1.322 - </frame> 1.323 - 1.324 - <frame Flavor config and packages list> 1.325 - <text wrap="true" width-chars="60" use-markup="true"> 1.326 - <label> 1.327 + <hbox> 1.328 + <text use-markup="true"> 1.329 + <label>"<b>New flavor :</b>"</label> 1.330 + </text> 1.331 + <entry> 1.332 + <default>slitaz</default> 1.333 + <variable>GEN_FLAVOR_NAME</variable> 1.334 + </entry> 1.335 + </hbox> 1.336 + 1.337 + <hbox> 1.338 + <button> 1.339 + <label>Addfiles</label> 1.340 + <input file icon="gtk-open"></input> 1.341 + <action>$BIN addfiles_action</action> 1.342 + </button> 1.343 + <button> 1.344 + <label>Gen new flavor</label> 1.345 + <input file icon="forward"></input> 1.346 + <action>$BIN gen_flavor_action</action> 1.347 + </button> 1.348 + </hbox> 1.349 + 1.350 + </frame> 1.351 + 1.352 + <frame Flavor config and packages list> 1.353 + 1.354 + <text wrap="true" width-chars="60" use-markup="true"> 1.355 + <label> 1.356 " 1.357 Before editing files you must have a flavor description. Distro 1.358 script can be used to perform actions into the rootfs before 1.359 compression. 1.360 " 1.361 - </label> 1.362 - </text> 1.363 - 1.364 - <hbox> 1.365 - <text use-markup="true"> 1.366 - <label>"<b>Flavor config :</b>"</label> 1.367 - </text> 1.368 - <entry> 1.369 - <default>/home/slitaz/tazlito.conf</default> 1.370 - <variable>CONFIG_FILE</variable> 1.371 - </entry> 1.372 - <button> 1.373 - <input file icon="accessories-text-editor"></input> 1.374 - <action>editor $CONFIG_FILE</action> 1.375 - </button> 1.376 - </hbox> 1.377 - 1.378 - <hbox> 1.379 - <text use-markup="true"> 1.380 - <label>"<b>Packages list :</b>"</label> 1.381 - </text> 1.382 - <entry> 1.383 - <default>/home/slitaz/distro-packages.list</default> 1.384 - <variable>PKGS_LIST</variable> 1.385 - </entry> 1.386 - <button> 1.387 - <input file icon="accessories-text-editor"></input> 1.388 - <action>editor $PKGS_LIST</action> 1.389 - </button> 1.390 - </hbox> 1.391 - 1.392 - <hbox> 1.393 - <text use-markup="true"> 1.394 - <label>"<b>Distro script :</b> "</label> 1.395 - </text> 1.396 - <entry> 1.397 - <default>/home/slitaz/distro.sh</default> 1.398 - <variable>DISTRO_SCRIPT</variable> 1.399 - </entry> 1.400 - <button> 1.401 - <input file icon="accessories-text-editor"></input> 1.402 - <action>$BIN edit_distro_script</action> 1.403 - </button> 1.404 - </hbox> 1.405 - 1.406 - </frame> 1.407 - 1.408 - </notebook> 1.409 - 1.410 - <hbox> 1.411 - <button help> 1.412 - <input file icon="help-browser"></input> 1.413 - <action type="launch">HELP</action> 1.414 - </button> 1.415 - <button> 1.416 - <label>Exit</label> 1.417 - <input file icon="exit"></input> 1.418 - <action type="exit">Exit</action> 1.419 - </button> 1.420 - </hbox> 1.421 - 1.422 - </vbox> 1.423 + </label> 1.424 + </text> 1.425 + 1.426 + <hbox> 1.427 + <text use-markup="true"> 1.428 + <label>"<b>Flavor config :</b>"</label> 1.429 + </text> 1.430 + <entry> 1.431 + <default>/home/slitaz/tazlito.conf</default> 1.432 + <variable>CONFIG_FILE</variable> 1.433 + </entry> 1.434 + <button> 1.435 + <input file icon="accessories-text-editor"></input> 1.436 + <action>editor $CONFIG_FILE</action> 1.437 + </button> 1.438 + </hbox> 1.439 + 1.440 + <hbox> 1.441 + <text use-markup="true"> 1.442 + <label>"<b>Packages list :</b>"</label> 1.443 + </text> 1.444 + <entry> 1.445 + <default>/home/slitaz/distro-packages.list</default> 1.446 + <variable>PKGS_LIST</variable> 1.447 + </entry> 1.448 + <button> 1.449 + <input file icon="accessories-text-editor"></input> 1.450 + <action>editor $PKGS_LIST</action> 1.451 + </button> 1.452 + </hbox> 1.453 + 1.454 + <hbox> 1.455 + <text use-markup="true"> 1.456 + <label>"<b>Distro script :</b> "</label> 1.457 + </text> 1.458 + <entry> 1.459 + <default>/home/slitaz/distro.sh</default> 1.460 + <variable>DISTRO_SCRIPT</variable> 1.461 + </entry> 1.462 + <button> 1.463 + <input file icon="accessories-text-editor"></input> 1.464 + <action>$BIN edit_distro_script</action> 1.465 + </button> 1.466 + </hbox> 1.467 + 1.468 + </frame> 1.469 + 1.470 + </notebook> 1.471 + 1.472 + <hbox> 1.473 + <button help> 1.474 + <input file icon="help-browser"></input> 1.475 + <action type="launch">HELP</action> 1.476 + </button> 1.477 + <button> 1.478 + <label>Exit</label> 1.479 + <input file icon="exit"></input> 1.480 + <action type="exit">Exit</action> 1.481 + </button> 1.482 + </hbox> 1.483 + 1.484 +</vbox> 1.485 </window> 1.486 ' 1.487