tazlito annotate tazlitobox @ rev 196
tazlito: typo in stat -c
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 19 11:41:39 2010 +0100 (2010-12-19) |
parents | b8347b934dc4 |
children | 0893d0f643b9 |
rev | line source |
---|---|
pankso@140 | 1 #!/bin/sh |
pankso@74 | 2 # |
pankso@74 | 3 # Gtkdialog box for Tazlito - SliTaz Live Tool. |
pankso@140 | 4 # Tabs are used for ident ans all action should go into functions to |
pankso@140 | 5 # separate GUI and commands. |
pankso@140 | 6 # |
pankso@140 | 7 # (C) GNU gpl v3 - SliTaz GNU/Linux 2010. |
pankso@74 | 8 # |
pankso@156 | 9 VERSION=3.0 |
pankso@133 | 10 |
pankso@188 | 11 # Include gettext helper script. |
pankso@188 | 12 . /usr/bin/gettext.sh |
pankso@188 | 13 |
pankso@188 | 14 # Export package name for gettext. |
pankso@188 | 15 TEXTDOMAIN='tazusbbox' |
pankso@188 | 16 export TEXTDOMAIN |
pankso@188 | 17 |
pankso@133 | 18 export BIN=$0 |
pankso@74 | 19 |
pankso@74 | 20 # Check if user is root. |
pankso@74 | 21 check_root() |
pankso@74 | 22 { |
pankso@74 | 23 if test $(id -u) != 0 ; then |
pankso@74 | 24 echo -e " |
pankso@74 | 25 You must be root to run `basename $0`. Please type 'su' and |
pankso@74 | 26 root password to become super-user.\n" |
pankso@74 | 27 exit 0 |
pankso@74 | 28 fi |
pankso@74 | 29 } |
pankso@74 | 30 |
pankso@133 | 31 # We need to parse flavors.list for GTK tree. |
pankso@133 | 32 list_flavors() |
pankso@133 | 33 { |
pankso@133 | 34 tazlito list-flavors | grep ^[a-z] | while read line |
pankso@133 | 35 do |
pankso@133 | 36 info=`echo -n $line | awk '{print $1 " " $2 " " $3}'` |
pankso@133 | 37 printinfo=`echo -n $line | awk '{print $1 "|" $2 "|" $3}'` |
pankso@133 | 38 echo "$printinfo|`echo $line | sed s/\"$info\"//`" |
pankso@133 | 39 done |
pankso@133 | 40 } |
pankso@133 | 41 |
pankso@133 | 42 recharge_list() |
pankso@133 | 43 { |
pankso@133 | 44 xterm -geometry 90x14 \ |
pankso@133 | 45 -title "list-flavors --recharge" \ |
pankso@133 | 46 -e "tazlito list-flavors --recharge | grep ^[a-z] && sleep 2" |
pankso@133 | 47 } |
pankso@133 | 48 |
pankso@133 | 49 # When using gen-liveflavor, gen-flavor or gen-distro, user can put some |
pankso@133 | 50 # addfiles copied into the rootfs. |
pankso@133 | 51 addfiles_action() |
pankso@133 | 52 { |
pankso@133 | 53 cd /home/slitaz |
pankso@136 | 54 mkdir -p distro/addfiles/rootfs/usr/share/images |
pankso@133 | 55 mkdir -p distro/addfiles/rootcd |
pankso@133 | 56 file-manager distro/addfiles & |
pankso@133 | 57 } |
pankso@133 | 58 |
pankso@136 | 59 writeiso_action() |
pankso@136 | 60 { |
pankso@136 | 61 xterm -geometry 80x16 \ |
pankso@136 | 62 -title "writeiso" \ |
pankso@136 | 63 -e "tazlito writeiso $COMPRESSION" |
pankso@136 | 64 } |
pankso@136 | 65 |
pankso@137 | 66 gen_liveflavor_action() |
pankso@137 | 67 { |
pankso@137 | 68 cd /home/slitaz |
pankso@137 | 69 sed -i "s/ISO_NAME=.*/ISO_NAME=\"slitaz-$GEN_LIVEFLAVOR_NAME\"/" \ |
pankso@137 | 70 /etc/tazlito/tazlito.conf |
pankso@137 | 71 xterm -geometry 80x16 \ |
pankso@137 | 72 -title "gen-liveflavor" \ |
pankso@137 | 73 -e "tazlito gen-liveflavor $GEN_LIVEFLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close" |
pankso@137 | 74 } |
pankso@137 | 75 |
pankso@137 | 76 clean_distro_action() |
pankso@137 | 77 { |
pankso@137 | 78 cd /home/slitaz |
pankso@137 | 79 xterm -geometry 80x16 \ |
pankso@137 | 80 -title "clean-distro" \ |
pankso@137 | 81 -e "tazlito clean-distro && sleep 1" |
pankso@137 | 82 } |
pankso@137 | 83 |
pascal@164 | 84 show_flavors() |
pascal@164 | 85 { |
pascal@164 | 86 tazlito list-flavors | \ |
pascal@164 | 87 awk '{if (show && $1 != "") print $1} /^==/ {show=1}' |
pascal@164 | 88 } |
pascal@164 | 89 |
pankso@139 | 90 get_flavor_action() |
pankso@139 | 91 { |
pankso@139 | 92 cd /home/slitaz |
pankso@139 | 93 xterm -geometry 80x16 \ |
pankso@139 | 94 -title "get-flavor $COMMUNITY_FLAVOR" \ |
pankso@139 | 95 -e "tazlito get-flavor $COMMUNITY_FLAVOR && echo -e \"----\nENTER to continue...\" && read close" |
pankso@139 | 96 } |
pankso@139 | 97 |
pankso@139 | 98 gen_distro_action() |
pankso@139 | 99 { |
pankso@139 | 100 cd /home/slitaz |
pankso@139 | 101 xterm -geometry 80x16 \ |
pankso@139 | 102 -title "gen-distro" \ |
pankso@139 | 103 -e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close" |
pankso@139 | 104 } |
pankso@139 | 105 |
pankso@139 | 106 gen_flavor_action() |
pankso@139 | 107 { |
pankso@139 | 108 cd /home/slitaz |
pankso@139 | 109 xterm -geometry 80x16 \ |
pankso@139 | 110 -title "gen-flavor $GEN_FLAVOR_NAME" \ |
pankso@139 | 111 -e "tazlito gen-flavor $GEN_FLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close" |
pankso@139 | 112 } |
pankso@139 | 113 |
pankso@139 | 114 edit_distro_script() |
pankso@139 | 115 { |
pankso@139 | 116 [ ! -f $DISTRO_SCRIPT ] && echo "#!/bin/sh" > $DISTRO_SCRIPT |
pankso@139 | 117 chmod +x $DISTRO_SCRIPT |
pankso@139 | 118 editor $DISTRO_SCRIPT |
pankso@139 | 119 } |
pankso@139 | 120 |
pascal@170 | 121 loram_action() |
pascal@170 | 122 { |
pascal@185 | 123 case "$LORAM_RAM$LORAM_CDROM" in |
pascal@185 | 124 falsetrue) type=cdrom ;; |
pascal@170 | 125 *) type=ram ;; |
pascal@170 | 126 esac |
pascal@170 | 127 xterm -geometry 80x16 \ |
pascal@170 | 128 -title "build loram iso image $LORAM_OUT" \ |
pascal@170 | 129 -e "tazlito build-loram $LORAM_IN $LORAM_OUT $type ; echo -e \"----\nENTER to continue...\" && read close" |
pascal@170 | 130 } |
pascal@170 | 131 |
pascal@164 | 132 merge_input() |
pascal@164 | 133 { |
pascal@164 | 134 set -- $(cat /tmp/tazlito.mergelist 2> /dev/null) |
pascal@164 | 135 while [ -n "$2" ]; do |
pascal@164 | 136 echo "$2 | $1" |
pascal@164 | 137 shift 2 |
pascal@164 | 138 done |
pascal@164 | 139 } |
pascal@164 | 140 |
pascal@164 | 141 merge_add() |
pascal@164 | 142 { |
pascal@164 | 143 echo -n " $ISO_IN $ISO_RAM" >> /tmp/tazlito.mergelist |
pascal@164 | 144 } |
pascal@164 | 145 |
pascal@164 | 146 merge_del() |
pascal@164 | 147 { |
pascal@164 | 148 set -- $(cat /tmp/tazlito.mergelist) |
pascal@164 | 149 ARGS="" |
pascal@164 | 150 while [ -n "$2" ]; do |
pascal@164 | 151 case "$1" in |
pascal@164 | 152 $ISO_ITEM) ;; |
pascal@164 | 153 *) [ -n "$ARGS" ] && ARGS="$ARGS " |
pascal@164 | 154 ARGS="$ARGS$1 $2" ;; |
pascal@164 | 155 esac |
pascal@164 | 156 shift 2 |
pascal@164 | 157 done |
pascal@164 | 158 echo -n "$ARGS" > /tmp/tazlito.mergelist |
pascal@164 | 159 } |
pascal@164 | 160 |
pascal@164 | 161 merge_args() |
pascal@164 | 162 { |
pascal@164 | 163 first=true |
pascal@164 | 164 while [ -n "$2" ]; do |
pascal@164 | 165 echo "$(stat -c "%s" $1) $1 $2" |
pascal@164 | 166 shift 2 |
pascal@164 | 167 done | sort -nr | while read size file ram; do |
pascal@164 | 168 if $first; then |
pascal@164 | 169 cp $file $ISO_OUT |
pascal@164 | 170 echo -n "$ram $ISO_OUT " |
pascal@164 | 171 first=false |
pascal@164 | 172 continue |
pascal@164 | 173 fi |
pascal@164 | 174 dir=$tmp/$(basename $file) |
pascal@164 | 175 mkdir $dir |
pascal@164 | 176 mount -o loop,ro $file $dir |
pascal@164 | 177 echo -n "$ram $dir/boot/rootfs.gz " |
pascal@164 | 178 done |
pascal@164 | 179 } |
pascal@164 | 180 |
pascal@164 | 181 merge_action() |
pascal@164 | 182 { |
pascal@164 | 183 set -- $(cat /tmp/tazlito.mergelist 2> /dev/null) |
pascal@164 | 184 rm -f /tmp/tazlito.mergelist |
pascal@164 | 185 tmp=/tmp/tazlitobox$$ |
pascal@164 | 186 mkdir $tmp |
pascal@164 | 187 [ -n "$4" ] || return |
pascal@164 | 188 xterm -geometry 80x16 -title "build meta iso image $ISO_OUT" \ |
pascal@164 | 189 -e "script -c 'tazlito merge $(merge_args $@)' && echo -e \"----\nENTER to continue...\" && read close" |
pascal@164 | 190 mv $ISO_OUT.merged $ISO_OUT |
pascal@164 | 191 for i in $tmp/*; do |
pascal@164 | 192 umount -d $i |
pascal@164 | 193 done |
pascal@164 | 194 rm -rf $tmp |
pascal@164 | 195 } |
pascal@164 | 196 |
pankso@139 | 197 # Boxes |
pankso@139 | 198 |
pankso@74 | 199 export HELP=' |
pankso@74 | 200 <window title="Tazlito Box - Help" icon-name="media-cdrom"> |
pankso@133 | 201 <vbox> |
pankso@133 | 202 <text use-markup="true"> |
pankso@133 | 203 <label>" |
pankso@74 | 204 <b>Tazlito Box - Help</b>" |
pankso@133 | 205 </label> |
pankso@133 | 206 </text> |
pankso@133 | 207 |
pankso@133 | 208 <frame Overview> |
pankso@133 | 209 <text wrap="true" width-chars="52" use-markup="true"> |
pankso@133 | 210 <label> |
pankso@74 | 211 " |
paul@90 | 212 Tazlito Box is a tiny interface to the SliTaz Live Tool aka Tazlito. |
pankso@74 | 213 You can simply generate a LiveCD in a few minutes, using your |
pankso@74 | 214 own flavor or one from the SliTaz community. Tazlito can also |
paul@90 | 215 generate a LiveCD flavor using all of the currently installed |
paul@90 | 216 packages. Tazlito commands are executed in a XTerm, you can |
paul@90 | 217 press ENTER or the mouse to close the window. |
pankso@74 | 218 " |
pankso@133 | 219 </label> |
pankso@133 | 220 </text> |
pankso@133 | 221 </frame> |
pankso@133 | 222 |
pankso@133 | 223 <frame Default paths> |
pankso@133 | 224 <text wrap="true" width-chars="50" use-markup="true"> |
pankso@133 | 225 <label> |
pankso@74 | 226 " |
pankso@74 | 227 Distro : /home/slitaz/distro |
pankso@74 | 228 Flavors : /home/slitaz/flavors |
pankso@74 | 229 Packages : /home/slitaz/packages |
pankso@74 | 230 " |
pankso@133 | 231 </label> |
pankso@133 | 232 </text> |
pankso@133 | 233 </frame> |
pankso@133 | 234 |
pankso@133 | 235 <hbox> |
pankso@133 | 236 <button> |
pankso@133 | 237 <input file icon="exit"></input> |
pankso@133 | 238 <action type="closewindow">HELP</action> |
pankso@133 | 239 </button> |
pankso@133 | 240 </hbox> |
pankso@133 | 241 |
pankso@133 | 242 </vbox> |
pankso@74 | 243 </window> |
pankso@74 | 244 ' |
pankso@74 | 245 |
pankso@133 | 246 # List all flavors on the mirror. |
pankso@133 | 247 export LIST_FLAVORS_BOX=' |
pankso@133 | 248 <window title="Community flavors list" icon-name="tazlito"> |
pankso@133 | 249 <vbox> |
pankso@133 | 250 <tree> |
pankso@133 | 251 <width>500</width><height>200</height> |
pankso@133 | 252 <variable>COMMUNITY_FLAVOR</variable> |
pankso@133 | 253 <label>Name|ISO|Rootfs|Description</label> |
pankso@133 | 254 <input exported_column="0">$BIN list_flavors</input> |
pankso@133 | 255 </tree> |
pankso@133 | 256 <hbox> |
pankso@133 | 257 <button> |
pankso@133 | 258 <label>Recharge list</label> |
pankso@133 | 259 <input file icon="reload"></input> |
pankso@133 | 260 <action>$BIN recharge_list</action> |
pankso@133 | 261 <action>refresh:COMMUNITY_FLAVOR</action> |
pankso@133 | 262 </button> |
pankso@133 | 263 <button> |
pankso@133 | 264 <label>Exit</label> |
pankso@133 | 265 <input file icon="exit"></input> |
pankso@133 | 266 <action type="closewindow">LIST_FLAVORS_BOX</action> |
pankso@133 | 267 </button> |
pankso@133 | 268 </hbox> |
pankso@133 | 269 </vbox> |
pankso@133 | 270 </window>' |
pankso@133 | 271 |
pankso@133 | 272 # Execute tazlito commands in a XTerm. Notebook: tab-pos="GTK_POS_LEFT" |
pankso@133 | 273 export TAZLITO_BOX=' |
pankso@74 | 274 <window title="Tazlito Box" icon-name="media-cdrom"> |
pankso@140 | 275 <vbox> |
pankso@132 | 276 |
pankso@140 | 277 <hbox> |
pankso@140 | 278 <text use-markup="true"> |
pankso@140 | 279 <label>"<b>SliTaz Live Tool</b>"</label> |
pankso@140 | 280 </text> |
pankso@140 | 281 <pixmap> |
pankso@140 | 282 <input file>/usr/share/pixmaps/tazlito.png</input> |
pankso@140 | 283 </pixmap> |
pankso@140 | 284 </hbox> |
pankso@132 | 285 |
pascal@170 | 286 <notebook labels="Writeiso|Live flavor|Flavors list|Gen flavor|Meta|Low RAM|Configuration"> |
pankso@140 | 287 |
pankso@140 | 288 <frame Filesystem to ISO> |
pankso@140 | 289 |
pankso@140 | 290 <text wrap="true" width-chars="60" use-markup="true"> |
pankso@140 | 291 <label> |
pankso@74 | 292 " |
pankso@132 | 293 Writeiso will generate an ISO image of the current filesystem as |
paul@134 | 294 is, including the /home directory. It is an easy way to remaster a |
pankso@132 | 295 SliTaz Live system, you just have to: boot, modify, writeiso. |
pankso@74 | 296 " |
pankso@140 | 297 </label> |
pankso@140 | 298 </text> |
pankso@132 | 299 |
pankso@140 | 300 <hbox> |
pankso@140 | 301 <text use-markup="true"> |
pascal@164 | 302 <label>"<b>Compression:</b>"</label> |
pankso@140 | 303 </text> |
pascal@164 | 304 <combobox> |
pankso@140 | 305 <variable>COMPRESSION</variable> |
pascal@164 | 306 <item>gzip</item> |
pascal@164 | 307 <item>lzma</item> |
pascal@164 | 308 <item>none</item> |
pascal@164 | 309 </combobox> |
pankso@140 | 310 <button> |
pankso@140 | 311 <label>Writeiso</label> |
pankso@140 | 312 <input file icon="forward"></input> |
pankso@140 | 313 <action>$BIN writeiso_action</action> |
pankso@140 | 314 </button> |
pankso@140 | 315 </hbox> |
pankso@140 | 316 |
pankso@140 | 317 </frame> |
pankso@140 | 318 |
pankso@140 | 319 <frame Current packages selection> |
pankso@140 | 320 |
pankso@140 | 321 <text wrap="true" width-chars="60" use-markup="true"> |
pankso@140 | 322 <label> |
pankso@132 | 323 " |
pankso@132 | 324 Gen Live flavor will create a LiveCD based on all the currently |
pankso@132 | 325 installed packages. To build the rootfs and ISO image it will use |
paul@184 | 326 original SliTaz packages. Any addfiles can be copied before |
paul@184 | 327 generating the distro. |
pankso@132 | 328 " |
pankso@140 | 329 </label> |
pankso@140 | 330 </text> |
pankso@140 | 331 |
pankso@140 | 332 <hbox> |
pankso@140 | 333 <text use-markup="true"> |
pankso@140 | 334 <label>"<b>Flavor name :</b>"</label> |
pankso@140 | 335 </text> |
pankso@140 | 336 <entry> |
pankso@140 | 337 <default>slitaz</default> |
pankso@140 | 338 <variable>GEN_LIVEFLAVOR_NAME</variable> |
pankso@140 | 339 </entry> |
pankso@140 | 340 </hbox> |
pankso@140 | 341 |
pankso@140 | 342 <hbox> |
pankso@140 | 343 <button> |
pankso@140 | 344 <label>Addfiles</label> |
pankso@140 | 345 <input file icon="gtk-open"></input> |
pankso@140 | 346 <action>$BIN addfiles_action</action> |
pankso@140 | 347 </button> |
pankso@140 | 348 <button> |
pankso@140 | 349 <label>Gen distro</label> |
pankso@140 | 350 <input file icon="forward"></input> |
pankso@140 | 351 <action>$BIN gen_liveflavor_action</action> |
pankso@140 | 352 </button> |
pankso@140 | 353 <button> |
pankso@140 | 354 <label>Clean distro</label> |
pankso@140 | 355 <input file icon="edit-clear"></input> |
pankso@140 | 356 <action>$BIN clean_distro_action</action> |
pankso@140 | 357 </button> |
pankso@140 | 358 </hbox> |
pankso@140 | 359 |
pankso@140 | 360 </frame> |
pankso@140 | 361 |
pankso@140 | 362 <frame Community and personal flavors> |
pankso@140 | 363 |
pankso@140 | 364 <text wrap="true" width-chars="60" use-markup="true"> |
pankso@140 | 365 <label> |
paul@90 | 366 " |
paul@184 | 367 Get and build preconfigured flavors from the community. The list of |
paul@184 | 368 flavors can be recharged from the SliTaz mirror. Some addfiles can |
paul@184 | 369 be copied before generating the distro. |
pankso@74 | 370 " |
pankso@140 | 371 </label> |
pankso@140 | 372 </text> |
pankso@140 | 373 |
pankso@140 | 374 <hbox> |
pankso@140 | 375 <text use-markup="true"> |
pankso@140 | 376 <label>"<b>Flavor :</b>"</label> |
pankso@140 | 377 </text> |
pankso@140 | 378 <entry> |
pankso@140 | 379 <default>core</default> |
pankso@140 | 380 <variable>COMMUNITY_FLAVOR</variable> |
pankso@140 | 381 </entry> |
pankso@140 | 382 <button> |
pankso@140 | 383 <label>List flavors</label> |
pankso@140 | 384 <input file icon="media-cdrom"></input> |
pankso@140 | 385 <action type="launch">LIST_FLAVORS_BOX</action> |
pankso@140 | 386 </button> |
pankso@140 | 387 </hbox> |
pankso@140 | 388 |
pankso@140 | 389 <hbox> |
pankso@140 | 390 <button> |
pankso@140 | 391 <label>Get flavor</label> |
pankso@140 | 392 <input file icon="forward"></input> |
pankso@140 | 393 <action>$BIN get_flavor_action</action> |
pankso@140 | 394 </button> |
pankso@140 | 395 <button> |
pankso@140 | 396 <label>Addfiles</label> |
pankso@140 | 397 <input file icon="gtk-open"></input> |
pankso@140 | 398 <action>$BIN addfiles_action</action> |
pankso@140 | 399 </button> |
pankso@140 | 400 <button> |
pankso@140 | 401 <label>Gen distro</label> |
pankso@140 | 402 <input file icon="forward"></input> |
pankso@140 | 403 <action>$BIN gen_distro_action</action> |
pankso@140 | 404 </button> |
pankso@140 | 405 <button> |
pankso@140 | 406 <label>Clean distro</label> |
pankso@140 | 407 <input file icon="edit-clear"></input> |
pankso@140 | 408 <action>$BIN clean_distro_action</action> |
pankso@140 | 409 </button> |
pankso@140 | 410 </hbox> |
pankso@140 | 411 |
pankso@140 | 412 </frame> |
pankso@140 | 413 <frame Generate a flavor> |
pankso@140 | 414 |
pankso@140 | 415 <text wrap="true" width-chars="60" use-markup="true"> |
pankso@140 | 416 <label> |
pankso@132 | 417 " |
paul@184 | 418 Gen Flavor will generate a new flavor file based on a rootfs in |
pankso@136 | 419 /home/slitaz/distro. All addfiles will be included in the flavor file. |
pankso@132 | 420 " |
pankso@140 | 421 </label> |
pankso@140 | 422 </text> |
pankso@132 | 423 |
pankso@140 | 424 <hbox> |
pankso@140 | 425 <text use-markup="true"> |
pankso@140 | 426 <label>"<b>New flavor :</b>"</label> |
pankso@140 | 427 </text> |
pankso@140 | 428 <entry> |
pankso@140 | 429 <default>slitaz</default> |
pankso@140 | 430 <variable>GEN_FLAVOR_NAME</variable> |
pankso@140 | 431 </entry> |
pankso@140 | 432 </hbox> |
pankso@140 | 433 |
pankso@140 | 434 <hbox> |
pankso@140 | 435 <button> |
pankso@140 | 436 <label>Addfiles</label> |
pankso@140 | 437 <input file icon="gtk-open"></input> |
pankso@140 | 438 <action>$BIN addfiles_action</action> |
pankso@140 | 439 </button> |
pankso@140 | 440 <button> |
pankso@140 | 441 <label>Gen new flavor</label> |
pankso@140 | 442 <input file icon="forward"></input> |
pankso@140 | 443 <action>$BIN gen_flavor_action</action> |
pankso@140 | 444 </button> |
pankso@140 | 445 </hbox> |
pankso@140 | 446 |
pankso@140 | 447 </frame> |
pankso@140 | 448 |
pascal@164 | 449 <frame Meta ISO image> |
pascal@164 | 450 |
pascal@164 | 451 <vbox> |
pascal@164 | 452 <hbox> |
pascal@166 | 453 <vbox> |
pascal@166 | 454 <text wrap="true" width-chars="33" use-markup="true"> |
pascal@166 | 455 <label> |
pascal@164 | 456 " |
pascal@164 | 457 Combines several ISO flavors like |
pascal@164 | 458 nested Russian dolls. The amount |
pascal@164 | 459 of RAM available at startup will be |
paul@183 | 460 used to select the utmost one. " |
pascal@166 | 461 </label> |
pascal@166 | 462 </text> |
pascal@166 | 463 <hbox> |
pascal@166 | 464 <text use-markup="true"> |
pascal@166 | 465 <label>"<b>ISO input: </b> "</label> |
pascal@166 | 466 </text> |
pascal@166 | 467 <entry accept="filename"> |
pascal@166 | 468 <variable>ISO_IN</variable> |
pascal@166 | 469 </entry> |
pascal@166 | 470 <button> |
pascal@166 | 471 <input file stock="gtk-open"></input> |
pascal@166 | 472 <action type="fileselect">ISO_IN</action> |
pascal@166 | 473 </button> |
pascal@166 | 474 </hbox> |
pascal@166 | 475 <hbox> |
pascal@166 | 476 <text use-markup="true"> |
paul@173 | 477 <label>"<b>RAM needed:</b> "</label> |
pascal@166 | 478 </text> |
pascal@166 | 479 <entry> |
pascal@166 | 480 <default>128M</default> |
pascal@166 | 481 <variable>ISO_RAM</variable> |
pascal@166 | 482 </entry> |
pascal@166 | 483 <button> |
pascal@166 | 484 <input file icon="add"></input> |
pascal@166 | 485 <action>$BIN merge_add</action> |
pascal@166 | 486 <action>refresh:ISO_ITEM</action> |
pascal@166 | 487 </button> |
pascal@166 | 488 </hbox> |
pascal@166 | 489 </vbox> |
pascal@166 | 490 <tree> |
pascal@166 | 491 <width>140</width><height>50</height> |
pascal@166 | 492 <label>RAM|ISO</label> |
pascal@166 | 493 <variable>ISO_ITEM</variable> |
pascal@166 | 494 <input>$BIN merge_input</input> |
pascal@166 | 495 <action>$BIN merge_del</action> |
pascal@164 | 496 <action>refresh:ISO_ITEM</action> |
pascal@166 | 497 </tree> |
pascal@164 | 498 </hbox> |
pascal@164 | 499 <hbox> |
pascal@164 | 500 <text use-markup="true"> |
pascal@164 | 501 <label>"<b>ISO output:</b>"</label> |
pascal@164 | 502 </text> |
pascal@164 | 503 <entry accept="filename"> |
pascal@164 | 504 <default>meta.iso</default> |
pascal@164 | 505 <variable>ISO_OUT</variable> |
pascal@164 | 506 </entry> |
pascal@164 | 507 <button> |
pascal@164 | 508 <input file icon="go-next"></input> |
pascal@164 | 509 <label>"Build ISO"</label> |
pascal@164 | 510 <action>$BIN merge_action</action> |
pascal@164 | 511 </button> |
pascal@164 | 512 </hbox> |
pascal@164 | 513 </vbox> |
pascal@164 | 514 |
pascal@164 | 515 </frame> |
pascal@164 | 516 |
pascal@170 | 517 <frame Low RAM ISO image> |
pascal@170 | 518 |
pascal@170 | 519 <vbox> |
pascal@170 | 520 <hbox> |
pascal@170 | 521 <text wrap="true" width-chars="25" use-markup="true"> |
pascal@170 | 522 <label> |
pascal@170 | 523 " |
paul@173 | 524 Build a Low RAM version |
pascal@170 | 525 of a SliTaz ISO image. |
pascal@170 | 526 The root filesystem is |
pascal@170 | 527 compressed and slower. |
pascal@170 | 528 " |
pascal@170 | 529 </label> |
pascal@170 | 530 </text> |
pascal@170 | 531 |
pascal@170 | 532 <vbox> |
pascal@170 | 533 <radiobutton> |
pascal@170 | 534 <label>The filesystem is always in RAM.</label> |
pascal@170 | 535 <variable>LORAM_RAM</variable> |
pascal@170 | 536 </radiobutton> |
pascal@170 | 537 <radiobutton> |
paul@173 | 538 <label>The filesystem may be on a CDROM.</label> |
pascal@170 | 539 <variable>LORAM_CDROM</variable> |
pascal@170 | 540 </radiobutton> |
pascal@170 | 541 </vbox> |
pascal@170 | 542 </hbox> |
pascal@170 | 543 <hbox> |
pascal@170 | 544 <text use-markup="true"> |
pascal@170 | 545 <label>"<b>ISO input: </b>"</label> |
pascal@170 | 546 </text> |
pascal@170 | 547 <entry accept="filename"> |
pascal@170 | 548 <variable>LORAM_IN</variable> |
pascal@170 | 549 </entry> |
pascal@170 | 550 <button> |
pascal@170 | 551 <input file stock="gtk-open"></input> |
pascal@170 | 552 <action type="fileselect">LORAM_IN</action> |
pascal@170 | 553 </button> |
pascal@170 | 554 </hbox> |
pascal@170 | 555 <hbox> |
pascal@170 | 556 <text use-markup="true"> |
paul@173 | 557 <label>"<b>ISO output:</b>"</label> |
pascal@170 | 558 </text> |
pascal@170 | 559 <entry accept="filename"> |
pascal@170 | 560 <default>loram.iso</default> |
pascal@170 | 561 <variable>LORAM_OUT</variable> |
pascal@170 | 562 </entry> |
pascal@170 | 563 <button> |
pascal@170 | 564 <input file icon="go-next"></input> |
pascal@170 | 565 <label>"Build ISO"</label> |
pascal@170 | 566 <action>$BIN loram_action</action> |
pascal@170 | 567 </button> |
pascal@170 | 568 </hbox> |
pascal@170 | 569 </vbox> |
pascal@170 | 570 |
pascal@170 | 571 </frame> |
pascal@170 | 572 |
pankso@140 | 573 <frame Flavor config and packages list> |
pankso@140 | 574 |
pankso@140 | 575 <text wrap="true" width-chars="60" use-markup="true"> |
pankso@140 | 576 <label> |
pankso@74 | 577 " |
paul@184 | 578 Before editing files you must have a flavor description. A distro |
paul@138 | 579 script can be used to perform actions into the rootfs before |
pankso@136 | 580 compression. |
pankso@74 | 581 " |
pankso@140 | 582 </label> |
pankso@140 | 583 </text> |
pankso@140 | 584 |
pankso@140 | 585 <hbox> |
pankso@140 | 586 <text use-markup="true"> |
pankso@140 | 587 <label>"<b>Flavor config :</b>"</label> |
pankso@140 | 588 </text> |
pankso@140 | 589 <entry> |
pankso@140 | 590 <default>/home/slitaz/tazlito.conf</default> |
pankso@140 | 591 <variable>CONFIG_FILE</variable> |
pankso@140 | 592 </entry> |
pankso@140 | 593 <button> |
pankso@140 | 594 <input file icon="accessories-text-editor"></input> |
pankso@140 | 595 <action>editor $CONFIG_FILE</action> |
pankso@140 | 596 </button> |
pankso@140 | 597 </hbox> |
pankso@140 | 598 |
pankso@140 | 599 <hbox> |
pankso@140 | 600 <text use-markup="true"> |
pankso@140 | 601 <label>"<b>Packages list :</b>"</label> |
pankso@140 | 602 </text> |
pankso@140 | 603 <entry> |
pankso@140 | 604 <default>/home/slitaz/distro-packages.list</default> |
pankso@140 | 605 <variable>PKGS_LIST</variable> |
pankso@140 | 606 </entry> |
pankso@140 | 607 <button> |
pankso@140 | 608 <input file icon="accessories-text-editor"></input> |
pankso@140 | 609 <action>editor $PKGS_LIST</action> |
pankso@140 | 610 </button> |
pankso@140 | 611 </hbox> |
pankso@140 | 612 |
pankso@140 | 613 <hbox> |
pankso@140 | 614 <text use-markup="true"> |
pankso@140 | 615 <label>"<b>Distro script :</b> "</label> |
pankso@140 | 616 </text> |
pankso@140 | 617 <entry> |
pankso@140 | 618 <default>/home/slitaz/distro.sh</default> |
pankso@140 | 619 <variable>DISTRO_SCRIPT</variable> |
pankso@140 | 620 </entry> |
pankso@140 | 621 <button> |
pankso@140 | 622 <input file icon="accessories-text-editor"></input> |
pankso@140 | 623 <action>$BIN edit_distro_script</action> |
pankso@140 | 624 </button> |
pankso@140 | 625 </hbox> |
pankso@140 | 626 |
pankso@140 | 627 </frame> |
pankso@140 | 628 |
pankso@140 | 629 </notebook> |
pankso@140 | 630 |
pankso@140 | 631 <hbox> |
pankso@140 | 632 <button help> |
pankso@140 | 633 <input file icon="help-browser"></input> |
pankso@140 | 634 <action type="launch">HELP</action> |
pankso@140 | 635 </button> |
pankso@140 | 636 <button> |
pankso@140 | 637 <label>Exit</label> |
pankso@140 | 638 <input file icon="exit"></input> |
pankso@140 | 639 <action type="exit">Exit</action> |
pankso@140 | 640 </button> |
pankso@140 | 641 </hbox> |
pankso@140 | 642 |
pankso@140 | 643 </vbox> |
pankso@74 | 644 </window> |
pankso@74 | 645 ' |
pankso@74 | 646 |
pankso@133 | 647 case $1 in |
pankso@133 | 648 *_*) |
pankso@133 | 649 # Exec all function called by args (must have an underscore). |
pankso@133 | 650 $1 ;; |
pankso@133 | 651 *) |
pankso@136 | 652 # Tazlitobox action. |
pankso@133 | 653 check_root |
pankso@133 | 654 gtkdialog --center --program=TAZLITO_BOX ;; |
pankso@133 | 655 esac |
pankso@74 | 656 |
pankso@74 | 657 exit 0 |