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

updated graphviz (2.28.0 -> 2.42.3)
author Hans-G?nter Theisgen
date Thu Nov 21 13:37:52 2019 +0100 (2019-11-21)
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