wok-6.x view suggested-applications/stuff/default-app @ rev 5130

Add slitaz suggested-applications
author Rohit Joshi <jozee@slitaz.org>
date Mon Mar 22 12:06:26 2010 +0000 (2010-03-22)
parents
children 67404973a113
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 and proceed)" \
18 -e "echo -n \"Installing packages as root. This option depends on \
19 `cat $TMPFILE`\";
20 echo \" \"
21 subox tazpkg get-install-list $TMPFILE --forced;
22 echo -e \"----\nPress ENTER to close and proceed further when done...\"; read i; exit 0;
23 "
24 rm -f $TMPFILE
25 fi
27 }
29 if [ "$2" == "--install" ] ; then
30 SUGGESTED="$3"
31 install "$SUGGESTED"
32 fi
34 $APP &
36 exit 0