tazpkg annotate oldstuff/tazpkgbox-install @ rev 952

Do not hard-code year in docs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 07 23:53:39 2017 +0200 (2017-10-07)
parents 185778056b84
children
rev   line source
erjo@352 1 #!/bin/sh
erjo@352 2 #
paul@437 3 # GTKdialog interface to SliTaz Packages Manager aka Tazpkg. Note:
paul@437 4 # Notebook tabs are vbox, tabs are used to indent and functions are
erjo@352 5 # split and found in $LIB.
erjo@352 6 #
erjo@352 7 # (C) GNU gpl v3 - SliTaz GNU/Linux 2010.
erjo@352 8 #
erjo@352 9
erjo@352 10 export PKG="$@"
erjo@352 11 export PKG_SHORT_NAME=$(basename $PKG)
erjo@352 12
erjo@352 13
erjo@352 14 # Tazpkgbox is only for root.
erjo@352 15 if test $(id -u) != 0 ; then
erjo@352 16 exec subox tazpkgbox-install $PKG
erjo@352 17 exit 0
erjo@352 18 fi
erjo@352 19
erjo@352 20
erjo@352 21
erjo@352 22 # English/French help dialog.
erjo@352 23 export MAIN_DIALOG="
erjo@352 24 <window title=\"Tazpkg install\" icon-name=\"tazpkg\">
erjo@352 25 <vbox>
erjo@352 26 <text use-markup=\"true\" width-chars=\"54\">
erjo@352 27 <label>\"
erjo@352 28 Package <b>$PKG_SHORT_NAME</b> will be installed\"
erjo@352 29 </label>
erjo@352 30 </text>
erjo@352 31 <hbox>
erjo@352 32 <button ok>
erjo@352 33 <action>xterm -T \"Install package \" -geometry 80x16+120+120 -e \"tazpkg install $PKG; sleep 2\"</action>
erjo@352 34 <action type=\"closewindow\">\"\"</action>
erjo@352 35 </button>
erjo@352 36 <button cancel>
erjo@352 37 <action type=\"closewindow\">HELP</action>
erjo@352 38 </button>
erjo@352 39 </hbox>
erjo@352 40 </vbox>
erjo@352 41 </window>
erjo@352 42 "
erjo@352 43
erjo@352 44 gtkdialog --center --program=MAIN_DIALOG >/dev/null
erjo@352 45
erjo@352 46 exit 0