wok-stable view suggested-applications/stuff/default-app @ rev 6102
gettext: breaks build_depends loop with gcc+gcj, glib & gtk+
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 03 10:24:10 2010 +0200 (2010-09-03) |
parents | a4542133af01 |
children |
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