tazpkg diff oldstuff/tazpkgbox-install @ rev 833
Update fr.po
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 14 09:52:08 2015 +0200 (2015-08-14) |
parents | 185778056b84 |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/oldstuff/tazpkgbox-install Fri Aug 14 09:52:08 2015 +0200 1.3 @@ -0,0 +1,46 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# GTKdialog interface to SliTaz Packages Manager aka Tazpkg. Note: 1.7 +# Notebook tabs are vbox, tabs are used to indent and functions are 1.8 +# split and found in $LIB. 1.9 +# 1.10 +# (C) GNU gpl v3 - SliTaz GNU/Linux 2010. 1.11 +# 1.12 + 1.13 +export PKG="$@" 1.14 +export PKG_SHORT_NAME=$(basename $PKG) 1.15 + 1.16 + 1.17 +# Tazpkgbox is only for root. 1.18 +if test $(id -u) != 0 ; then 1.19 + exec subox tazpkgbox-install $PKG 1.20 + exit 0 1.21 +fi 1.22 + 1.23 + 1.24 + 1.25 +# English/French help dialog. 1.26 +export MAIN_DIALOG=" 1.27 +<window title=\"Tazpkg install\" icon-name=\"tazpkg\"> 1.28 +<vbox> 1.29 + <text use-markup=\"true\" width-chars=\"54\"> 1.30 + <label>\" 1.31 +Package <b>$PKG_SHORT_NAME</b> will be installed\" 1.32 + </label> 1.33 + </text> 1.34 + <hbox> 1.35 + <button ok> 1.36 + <action>xterm -T \"Install package \" -geometry 80x16+120+120 -e \"tazpkg install $PKG; sleep 2\"</action> 1.37 + <action type=\"closewindow\">\"\"</action> 1.38 + </button> 1.39 + <button cancel> 1.40 + <action type=\"closewindow\">HELP</action> 1.41 + </button> 1.42 + </hbox> 1.43 +</vbox> 1.44 +</window> 1.45 +" 1.46 + 1.47 +gtkdialog --center --program=MAIN_DIALOG >/dev/null 1.48 + 1.49 +exit 0