slitaz-tools rev 212
Moved tazlitobox to tazlito repo
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 10 01:15:17 2008 +0200 (2008-06-10) |
parents | 4bec7e667318 |
children | 696369f3891f |
files | rootfs/usr/share/applications/tazlitobox.desktop rootfs/usr/share/pixmaps/tazlito.png tinyutils/tazlitobox |
line diff
1.1 --- a/rootfs/usr/share/applications/tazlitobox.desktop Tue Jun 10 01:06:00 2008 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,11 +0,0 @@ 1.4 -[Desktop Entry] 1.5 -Encoding=UTF-8 1.6 -Name=Tazlito LiveCD Tool 1.7 -Name[fr]=Créer un LiveCD à saveur 1.8 -GenericName=Gen a LiveCD flavor 1.9 -GenericName[fr]=Créer un LiveCD à saveur 1.10 -Comment=Generate you own LiveCD flavor 1.11 -Exec=subox tazlitobox 1.12 -Icon=tazlito.png 1.13 -Type=Application 1.14 -Categories=System;
2.1 Binary file rootfs/usr/share/pixmaps/tazlito.png has changed
3.1 --- a/tinyutils/tazlitobox Tue Jun 10 01:06:00 2008 +0200 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,249 +0,0 @@ 3.4 -#! /bin/sh 3.5 -# 3.6 -# Gtkdialog box for Tazlito - SliTaz Live Tool. 3.7 -# 3.8 -VERSION=20080306 3.9 - 3.10 -# Check if user is root. 3.11 -check_root() 3.12 -{ 3.13 - if test $(id -u) != 0 ; then 3.14 - echo -e " 3.15 -You must be root to run `basename $0`. Please type 'su' and 3.16 -root password to become super-user.\n" 3.17 - exit 0 3.18 - fi 3.19 -} 3.20 - 3.21 -# By default we go in the flavors dir to download or gen flavors. 3.22 -cd_flavors() 3.23 -{ 3.24 - mkdir -p /home/slitaz/flavors 3.25 - cd /home/slitaz/flavors 3.26 -} 3.27 - 3.28 -export HELP=' 3.29 -<window title="Tazlito Box - Help" icon-name="media-cdrom"> 3.30 - <vbox> 3.31 - <text use-markup="true"> 3.32 - <label>" 3.33 -<b>Tazlito Box - Help</b>" 3.34 - </label> 3.35 - </text> 3.36 - 3.37 - <frame Overview> 3.38 - <text wrap="true" width-chars="52" use-markup="true"> 3.39 - <label> 3.40 -" 3.41 -Tazlito Box is a tiny interface to SliTaz Live Tool aka Tazlito. 3.42 -You can simply generate a LiveCD in a few minutes, using your 3.43 -own flavor or one from the SliTaz community. Tazlito can also 3.44 -generate a LiveCD flavor using all the current installed packages 3.45 -selection. Tazlito commads are executed in a XTerm, you can 3.46 -then press ENTER or the mouse to close the window. 3.47 -" 3.48 - </label> 3.49 - </text> 3.50 - </frame> 3.51 - 3.52 - <frame Default paths> 3.53 - <text wrap="true" width-chars="50" use-markup="true"> 3.54 - <label> 3.55 -" 3.56 -Distro : /home/slitaz/distro 3.57 -Flavors : /home/slitaz/flavors 3.58 -Packages : /home/slitaz/packages 3.59 -" 3.60 - </label> 3.61 - </text> 3.62 - </frame> 3.63 - 3.64 - <hbox> 3.65 - <button> 3.66 - <input file icon="exit"></input> 3.67 - <action type="closewindow">HELP</action> 3.68 - </button> 3.69 - </hbox> 3.70 - 3.71 - </vbox> 3.72 -</window> 3.73 -' 3.74 - 3.75 -# Execute tazlito commands in a XTerm. 3.76 -# 3.77 -export MAIN_DIALOG=' 3.78 -<window title="Tazlito Box" icon-name="media-cdrom"> 3.79 - <vbox> 3.80 - 3.81 - <text use-markup="true"> 3.82 - <label> 3.83 -" 3.84 -<b>SliTaz Live Tool Box</b>" 3.85 - </label> 3.86 - </text> 3.87 - <text wrap="true" width-chars="54" use-markup="true"> 3.88 - <label> 3.89 -" 3.90 -Generate a LiveCD flavor with Tazlito. 3.91 -" 3.92 - </label> 3.93 - </text> 3.94 - 3.95 - <notebook labels="System|Flavors|Configuration files"> 3.96 - 3.97 - <frame Current packages selection> 3.98 - 3.99 - <text use-markup="true"> 3.100 - <label> 3.101 -" 3.102 -Gen distro will creat a LiveCD with all installed packages. 3.103 -" 3.104 - </label> 3.105 - </text> 3.106 - 3.107 - <hbox> 3.108 - <button> 3.109 - <label>Gen running distro</label> 3.110 - <input file icon="forward"></input> 3.111 - <action>cd /home/slitaz</action> 3.112 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "gen-distro" -e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close"</action> 3.113 - </button> 3.114 - <button> 3.115 - <label>Clean distro</label> 3.116 - <input file icon="edit-clear"></input> 3.117 - <action>cd /home/slitaz</action> 3.118 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "clean-distro" -e "tazlito clean-distro && sleep 1"</action> 3.119 - </button> 3.120 - </hbox> 3.121 - 3.122 - <hbox> 3.123 - <text use-markup="true"> 3.124 - <label>"<b>New flavor :</b>"</label> 3.125 - </text> 3.126 - <entry> 3.127 - <default>home-made</default> 3.128 - <variable>GEN_FLAVOR_NAME</variable> 3.129 - </entry> 3.130 - </hbox> 3.131 - <hbox> 3.132 - <button> 3.133 - <label>Gen flavor</label> 3.134 - <input file icon="forward"></input> 3.135 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "gen-flavor $GEN_FLAVOR_NAME" -e "tazlito gen-flavor $GEN_FLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"</action> 3.136 - </button> 3.137 - </hbox> 3.138 - </frame> 3.139 - 3.140 - <frame Community and personnal flavors> 3.141 - <text wrap="true" use-markup="true"> 3.142 - <label> 3.143 -" 3.144 -Flavors list can be recharged from SliTaz mirror. 3.145 -" 3.146 - </label> 3.147 - </text> 3.148 - 3.149 - <hbox> 3.150 - <text use-markup="true"> 3.151 - <label>"<b>Flavor :</b>"</label> 3.152 - </text> 3.153 - <entry> 3.154 - <default>core</default> 3.155 - <variable>COMMUNITY_FLAVOR</variable> 3.156 - </entry> 3.157 - </hbox> 3.158 - 3.159 - <hbox> 3.160 - <button> 3.161 - <label>List flavors</label> 3.162 - <input file icon="media-cdrom"></input> 3.163 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "list-flavors" -e "tazlito list-flavors && echo -e \"----\nENTER to continue...\" && read close"</action> 3.164 - </button> 3.165 - <button> 3.166 - <label>Recharge list</label> 3.167 - <input file icon="reload"></input> 3.168 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "list-flavors --recharge" -e "tazlito list-flavors --recharge && echo -e \"----\nENTER to continue...\" && read close"</action> 3.169 - </button> 3.170 - </hbox> 3.171 - 3.172 - <hbox> 3.173 - <button> 3.174 - <label>Get flavor</label> 3.175 - <input file icon="forward"></input> 3.176 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "get-flavor $COMMUNITY_FLAVOR" -e "tazlito get-flavor $COMMUNITY_FLAVOR && echo -e \"----\nENTER to continue...\" && read close"</action> 3.177 - </button> 3.178 - <button> 3.179 - <label>Gen flavor distro</label> 3.180 - <input file icon="forward"></input> 3.181 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "gen-distro" -e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close"</action> 3.182 - </button> 3.183 - <button> 3.184 - <label>Clean distro</label> 3.185 - <input file icon="edit-clear"></input> 3.186 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x16 -title "clean-distro" -e "tazlito clean-distro && sleep 1"</action> 3.187 - </button> 3.188 - </hbox> 3.189 - </frame> 3.190 - 3.191 - <frame Flavor config and packages list> 3.192 - <text wrap="true" use-markup="true"> 3.193 - <label> 3.194 -" 3.195 -Before editing files you must have a flavor description. 3.196 -" 3.197 - </label> 3.198 - </text> 3.199 - 3.200 - <hbox> 3.201 - <text use-markup="true"> 3.202 - <label>"<b>Flavor config :</b>"</label> 3.203 - </text> 3.204 - <entry> 3.205 - <default>/home/slitaz/flavors/tazlito.conf</default> 3.206 - <variable>CONFIG_FILE</variable> 3.207 - </entry> 3.208 - <button> 3.209 - <input file icon="accessories-text-editor"></input> 3.210 - <action>leafpad $CONFIG_FILE</action> 3.211 - </button> 3.212 - </hbox> 3.213 - 3.214 - <hbox> 3.215 - <text use-markup="true"> 3.216 - <label>"<b>Packages list :</b>"</label> 3.217 - </text> 3.218 - <entry> 3.219 - <default>/home/slitaz/flavors/distro-packages.list</default> 3.220 - <variable>PKGS_LIST</variable> 3.221 - </entry> 3.222 - <button> 3.223 - <input file icon="accessories-text-editor"></input> 3.224 - <action>leafpad $PKGS_LIST</action> 3.225 - </button> 3.226 - </hbox> 3.227 - 3.228 - </frame> 3.229 - 3.230 - </notebook> 3.231 - 3.232 - <hbox> 3.233 - <button help> 3.234 - <input file icon="help-browser"></input> 3.235 - <action type="launch">HELP</action> 3.236 - </button> 3.237 - <button> 3.238 - <input file icon="exit"></input> 3.239 - <action type="exit">Exit</action> 3.240 - </button> 3.241 - </hbox> 3.242 - 3.243 - </vbox> 3.244 -</window> 3.245 -' 3.246 - 3.247 -# Tazlitobox action 3.248 -check_root 3.249 -cd_flavors 3.250 -gtkdialog --center --program=MAIN_DIALOG 3.251 - 3.252 -exit 0