wok-current view suggested-applications/stuff/default-app @ rev 9465

Up: python-pygments to 1.4.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Apr 03 12:26:36 2011 +0000 (2011-04-03)
parents a4542133af01
children 256340cc43f6
line source
1 #!/bin/sh
3 APP="$1"
5 # Auto Install DEPENDS and/or SUGGESTED
6 install()
7 {
8 TMPFILE="/tmp/installlist-$$"
9 #echo "pkgs to install: $1"
10 for pkg in $1 ; do
11 if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then
12 echo "$pkg" >> $TMPFILE
13 fi
14 done
16 if [ -f $TMPFILE ] ; then
17 xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close)" \
18 -e "echo -e \"Installing packages as root. This option depends on \n `cat $TMPFILE`\"
19 subox \"tazpkg get-install-list $TMPFILE\"
20 echo -e \"----\nPress ENTER to close and to proceed further...\"
21 read i; exit 0;
22 "
23 rm -f $TMPFILE
24 fi
26 }
28 if [ "$2" == "--install" ] ; then
29 SUGGESTED="$3"
30 install "$SUGGESTED"
31 fi
33 $APP &
35 exit 0