wok view suggested-applications/stuff/default-app @ rev 7615

Added xorg-dev-proto to xorg-server-dev depends. Needs xorg-dev-proto for pkg-config to work with xorg-server-dev.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 11 21:51:57 2010 +0000 (2010-12-11)
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