wok-next view suggested-applications/stuff/default-app @ rev 16646
gnome-vfs-dev: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 13 06:18:31 2014 +0000 (2014-05-13) |
parents | 67404973a113 |
children |
line source
1 #!/bin/sh
3 APP="$1"
5 # Auto Install DEPENDS and/or SUGGESTED
6 install() {
7 TMPFILE="/tmp/installlist-$$"
8 #echo "pkgs to install: $1"
9 for pkg in $1 ; do
10 if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then
11 echo "$pkg" >> $TMPFILE
12 fi
13 done
15 if [ -f $TMPFILE ] ; then
16 xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close)" \
17 -e "echo -e \"Installing packages as root. This option depends on \n `cat $TMPFILE`\"
18 subox \"tazpkg get-install-list $TMPFILE\"
19 echo -e \"----\nPress ENTER to close and to proceed further...\"
20 read i; exit 0;
21 "
22 rm -f $TMPFILE
23 fi
24 }
26 if [ "$2" == "--install" ] ; then
27 SUGGESTED="$3"
28 install "$SUGGESTED"
29 fi
31 $APP &
33 exit 0