# HG changeset patch # User Christophe Lincoln # Date 1330711936 -3600 # Node ID 6e56d045fc97ebca8c74429c0805bb2d0dc5ee5b # Parent 65431283074c177232fc224f633e4d313d4317ba Move tazusbbox to oldstuff diff -r 65431283074c -r 6e56d045fc97 Makefile --- a/Makefile Fri Mar 02 19:02:09 2012 +0100 +++ b/Makefile Fri Mar 02 19:12:16 2012 +0100 @@ -15,10 +15,10 @@ # i18n. pot: - xgettext -o po/tazusbbox/tazusbbox.pot -L Shell \ + xgettext -o po/tazusb-box/tazusb-box.pot -L Shell \ --package-name="TazUSB" \ --package-version="$(VERSION)" \ - ./tazusbbox + ./tazusb-box xgettext -o po/tazusb/tazusb.pot -L Shell \ --package-name="TazUSB" \ --package-version="$(VERSION)" \ @@ -26,9 +26,9 @@ msgmerge: @for l in $(LINGUAS); do \ - if [ -f "po/tazusbbox/$$l.po" ]; then \ + if [ -f "po/tazusb-box/$$l.po" ]; then \ echo -n "Updating $$l po file."; \ - msgmerge -U po/tazusbbox/$$l.po po/tazusbbox/tazusbbox.pot ; \ + msgmerge -U po/tazusb-box/$$l.po po/tazusb-box/tazusb-box.pot ; \ fi;\ if [ -f "po/tazusb/$$l.po" ]; then \ echo -n "Updating $$l po file."; \ @@ -38,10 +38,10 @@ msgfmt: @for l in $(LINGUAS); do \ - if [ -f "po/tazusbbox/$$l.po" ]; then \ - echo "Compiling tazusbbox $$l mo file..."; \ + if [ -f "po/tazusb-box/$$l.po" ]; then \ + echo "Compiling tazusb-box $$l mo file..."; \ mkdir -p po/mo/$$l/LC_MESSAGES; \ - msgfmt -o po/mo/$$l/LC_MESSAGES/tazusbbox.mo po/tazusbbox/$$l.po ; \ + msgfmt -o po/mo/$$l/LC_MESSAGES/tazusb-box.mo po/tazusb-box/$$l.po ; \ fi;\ if [ -f "po/tazusb/$$l.po" ]; then \ echo "Compiling tazusb $$l mo file..."; \ @@ -56,7 +56,7 @@ @echo "Installing TazUSB into $(DESTDIR)$(PREFIX)/bin..." mkdir -p $(DESTDIR)$(PREFIX)/bin install -m 0755 tazusb $(DESTDIR)$(PREFIX)/bin - install -m 0755 tazusbbox $(DESTDIR)$(PREFIX)/bin + install -m 0755 tazusb-box $(DESTDIR)$(PREFIX)/bin @echo "Installing Tazusb documentation..." mkdir -p $(DESTDIR)$(DOCDIR)/tazusb cp -a doc/* $(DESTDIR)$(DOCDIR)/tazusb @@ -72,7 +72,7 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/tazusb - rm -f $(DESTDIR)$(PREFIX)/bin/tazusbbox + rm -f $(DESTDIR)$(PREFIX)/bin/tazusb-box rm -rf $(DESTDIR)$(DOCDIR)/tazusb rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/tazusb*.mo diff -r 65431283074c -r 6e56d045fc97 oldstuff/tazusbbox/fr.po --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/oldstuff/tazusbbox/fr.po Fri Mar 02 19:12:16 2012 +0100 @@ -0,0 +1,56 @@ +# French translations for PACKAGE package. +# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Linux User , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: tazusbbox VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-06-06 13:55+0200\n" +"PO-Revision-Date: 2010-02-17 22:58+0100\n" +"Last-Translator: Christophe Lincoln \n" +"Language-Team: French\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: tazusbbox:43 +msgid "TazUSB Box" +msgstr "TazUSB Box" + +#: tazusbbox:47 +msgid "" +"\n" +"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n" +"the cdrom drive, select the correct device and press Generate.\n" +msgstr "" +"\n" +"Générer un LiveUSB de SliTaz et démarrer! Insérer un LiveCD dans\n" +"le lecteur de cdrom, séléctionner le media et appuyer sur générer.\n" + +#: tazusbbox:53 +msgid "ISO to USB (Optional default is CDROM)" +msgstr "ISO vers USB (En option, CDROM utilisé par défaut)" + +#: tazusbbox:56 +msgid "ISO image:" +msgstr "Image ISO:" + +#: tazusbbox:70 +msgid "USB Media:" +msgstr "Media USB:" + +#: tazusbbox:83 +msgid "Not found" +msgstr "Introuvé" + +#: tazusbbox:90 +msgid "Generate" +msgstr "Générer" + +#: tazusbbox:96 +msgid "Exit" +msgstr "Quitter" diff -r 65431283074c -r 6e56d045fc97 oldstuff/tazusbbox/pt_BR.po --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/oldstuff/tazusbbox/pt_BR.po Fri Mar 02 19:12:16 2012 +0100 @@ -0,0 +1,57 @@ +# Portuguese translations for PACKAGE package. +# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Claudinei Pereira , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-06-06 13:55+0200\n" +"PO-Revision-Date: 2010-02-28 22:28-0300\n" +"Last-Translator: Claudinei Pereira \n" +"Language-Team: Brazilian Portuguese\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: tazusbbox:43 +msgid "TazUSB Box" +msgstr "TazUSB Box" + +#: tazusbbox:47 +msgid "" +"\n" +"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n" +"the cdrom drive, select the correct device and press Generate.\n" +msgstr "" +"\n" +"Crie uma mídia LiveUSB e carregue o sistema na RAM!\n" +"Insira o LiveCD no drive de cdrom, selecione o dispositivo\n" +"correto e pressione Criar.\n" + +#: tazusbbox:53 +msgid "ISO to USB (Optional default is CDROM)" +msgstr "ISO para USB (Opção padrão é CDROM)" + +#: tazusbbox:56 +msgid "ISO image:" +msgstr "Imagem ISO:" + +#: tazusbbox:70 +msgid "USB Media:" +msgstr "Mídia USB:" + +#: tazusbbox:83 +msgid "Not found" +msgstr "Não Encontrado" + +#: tazusbbox:90 +msgid "Generate" +msgstr "Criar" + +#: tazusbbox:96 +msgid "Exit" +msgstr "Sair" diff -r 65431283074c -r 6e56d045fc97 oldstuff/tazusbbox/tazusbbox --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/oldstuff/tazusbbox/tazusbbox Fri Mar 02 19:12:16 2012 +0100 @@ -0,0 +1,113 @@ +#!/bin/sh +# +# Tiny GTKdialog interface to SliTaz Live USB tool aka TazUSB. +# +# (c) 2010 SliTaz GNU/Linux - GNU gpl v3 +# + +# TazUSBbox is only for root. +if test $(id -u) != 0 ; then + exec subox tazusbbox + exit 0 +fi + +# Include gettext helper script. +. /usr/bin/gettext.sh + +# Export package name for gettext. +TEXTDOMAIN='tazusbbox' +export TEXTDOMAIN + +# $BIN for functions. +export BIN=$0 + +# Functions + +gen_live() +{ + [ -z "$DEVICE" ] && exit 0 + if [ -n "$ISO_IMAGE" ]; then + xterm -T "Tazusb gen-iso2usb" \ + -geometry 80x16 \ + -e "tazusb gen-iso2usb $ISO_IMAGE $DEVICE; exit 0" + else + xterm -T "Tazusb gen-liveusb" \ + -geometry 80x16 \ + -e "tazusb gen-liveusb $DEVICE; exit 0" + fi +} + +box() +{ + MAIN_DIALOG=' + + + + + + + + + + + + + + ISO_IMAGE + + + + + + + + + + + DEVICE' + if [ -d /proc/scsi/usb-storage ]; then + MAIN_DIALOG=${MAIN_DIALOG}" + " + for i in `blkid | cut -d ":" -f 1`; do + MAIN_DIALOG=${MAIN_DIALOG}" + $i" + done + else + MAIN_DIALOG=${MAIN_DIALOG}' + '`gettext "Not found"`'' + fi + export MAIN_DIALOG=${MAIN_DIALOG}' + + + + + + + + +' + gtkdialog --center --program=MAIN_DIALOG #>/dev/null +} + +if [ -n "$1" ]; then + $1 +else + box +fi + +exit 0 diff -r 65431283074c -r 6e56d045fc97 oldstuff/tazusbbox/tazusbbox.pot --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/oldstuff/tazusbbox/tazusbbox.pot Fri Mar 02 19:12:16 2012 +0100 @@ -0,0 +1,53 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: TazUSB 2.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-06-07 12:18+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: tazusbbox:43 +msgid "TazUSB Box" +msgstr "" + +#: tazusbbox:47 +msgid "" +"\n" +"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n" +"the cdrom drive, select the correct device and press Generate.\n" +msgstr "" + +#: tazusbbox:53 +msgid "ISO to USB (Optional default is CDROM)" +msgstr "" + +#: tazusbbox:56 +msgid "ISO image:" +msgstr "" + +#: tazusbbox:70 +msgid "USB Media:" +msgstr "" + +#: tazusbbox:83 +msgid "Not found" +msgstr "" + +#: tazusbbox:90 +msgid "Generate" +msgstr "" + +#: tazusbbox:96 +msgid "Exit" +msgstr "" diff -r 65431283074c -r 6e56d045fc97 po/tazusbbox/fr.po --- a/po/tazusbbox/fr.po Fri Mar 02 19:02:09 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -# French translations for PACKAGE package. -# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Linux User , 2010. -# -msgid "" -msgstr "" -"Project-Id-Version: tazusbbox VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-06 13:55+0200\n" -"PO-Revision-Date: 2010-02-17 22:58+0100\n" -"Last-Translator: Christophe Lincoln \n" -"Language-Team: French\n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: tazusbbox:43 -msgid "TazUSB Box" -msgstr "TazUSB Box" - -#: tazusbbox:47 -msgid "" -"\n" -"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n" -"the cdrom drive, select the correct device and press Generate.\n" -msgstr "" -"\n" -"Générer un LiveUSB de SliTaz et démarrer! Insérer un LiveCD dans\n" -"le lecteur de cdrom, séléctionner le media et appuyer sur générer.\n" - -#: tazusbbox:53 -msgid "ISO to USB (Optional default is CDROM)" -msgstr "ISO vers USB (En option, CDROM utilisé par défaut)" - -#: tazusbbox:56 -msgid "ISO image:" -msgstr "Image ISO:" - -#: tazusbbox:70 -msgid "USB Media:" -msgstr "Media USB:" - -#: tazusbbox:83 -msgid "Not found" -msgstr "Introuvé" - -#: tazusbbox:90 -msgid "Generate" -msgstr "Générer" - -#: tazusbbox:96 -msgid "Exit" -msgstr "Quitter" diff -r 65431283074c -r 6e56d045fc97 po/tazusbbox/pt_BR.po --- a/po/tazusbbox/pt_BR.po Fri Mar 02 19:02:09 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -# Portuguese translations for PACKAGE package. -# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Claudinei Pereira , 2010. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-06 13:55+0200\n" -"PO-Revision-Date: 2010-02-28 22:28-0300\n" -"Last-Translator: Claudinei Pereira \n" -"Language-Team: Brazilian Portuguese\n" -"Language: pt_BR\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: tazusbbox:43 -msgid "TazUSB Box" -msgstr "TazUSB Box" - -#: tazusbbox:47 -msgid "" -"\n" -"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n" -"the cdrom drive, select the correct device and press Generate.\n" -msgstr "" -"\n" -"Crie uma mídia LiveUSB e carregue o sistema na RAM!\n" -"Insira o LiveCD no drive de cdrom, selecione o dispositivo\n" -"correto e pressione Criar.\n" - -#: tazusbbox:53 -msgid "ISO to USB (Optional default is CDROM)" -msgstr "ISO para USB (Opção padrão é CDROM)" - -#: tazusbbox:56 -msgid "ISO image:" -msgstr "Imagem ISO:" - -#: tazusbbox:70 -msgid "USB Media:" -msgstr "Mídia USB:" - -#: tazusbbox:83 -msgid "Not found" -msgstr "Não Encontrado" - -#: tazusbbox:90 -msgid "Generate" -msgstr "Criar" - -#: tazusbbox:96 -msgid "Exit" -msgstr "Sair" diff -r 65431283074c -r 6e56d045fc97 po/tazusbbox/tazusbbox.pot --- a/po/tazusbbox/tazusbbox.pot Fri Mar 02 19:02:09 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: TazUSB 2.3\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-07 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: 8bit\n" - -#: tazusbbox:43 -msgid "TazUSB Box" -msgstr "" - -#: tazusbbox:47 -msgid "" -"\n" -"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n" -"the cdrom drive, select the correct device and press Generate.\n" -msgstr "" - -#: tazusbbox:53 -msgid "ISO to USB (Optional default is CDROM)" -msgstr "" - -#: tazusbbox:56 -msgid "ISO image:" -msgstr "" - -#: tazusbbox:70 -msgid "USB Media:" -msgstr "" - -#: tazusbbox:83 -msgid "Not found" -msgstr "" - -#: tazusbbox:90 -msgid "Generate" -msgstr "" - -#: tazusbbox:96 -msgid "Exit" -msgstr "" diff -r 65431283074c -r 6e56d045fc97 tazusbbox --- a/tazusbbox Fri Mar 02 19:02:09 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +0,0 @@ -#!/bin/sh -# -# Tiny GTKdialog interface to SliTaz Live USB tool aka TazUSB. -# -# (c) 2010 SliTaz GNU/Linux - GNU gpl v3 -# - -# TazUSBbox is only for root. -if test $(id -u) != 0 ; then - exec subox tazusbbox - exit 0 -fi - -# Include gettext helper script. -. /usr/bin/gettext.sh - -# Export package name for gettext. -TEXTDOMAIN='tazusbbox' -export TEXTDOMAIN - -# $BIN for functions. -export BIN=$0 - -# Functions - -gen_live() -{ - [ -z "$DEVICE" ] && exit 0 - if [ -n "$ISO_IMAGE" ]; then - xterm -T "Tazusb gen-iso2usb" \ - -geometry 80x16 \ - -e "tazusb gen-iso2usb $ISO_IMAGE $DEVICE; exit 0" - else - xterm -T "Tazusb gen-liveusb" \ - -geometry 80x16 \ - -e "tazusb gen-liveusb $DEVICE; exit 0" - fi -} - -box() -{ - MAIN_DIALOG=' - - - - - - - - - - - - - - ISO_IMAGE - - - - - - - - - - - DEVICE' - if [ -d /proc/scsi/usb-storage ]; then - MAIN_DIALOG=${MAIN_DIALOG}" - " - for i in `blkid | cut -d ":" -f 1`; do - MAIN_DIALOG=${MAIN_DIALOG}" - $i" - done - else - MAIN_DIALOG=${MAIN_DIALOG}' - '`gettext "Not found"`'' - fi - export MAIN_DIALOG=${MAIN_DIALOG}' - - - - - - - - -' - gtkdialog --center --program=MAIN_DIALOG #>/dev/null -} - -if [ -n "$1" ]; then - $1 -else - box -fi - -exit 0