home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- # This routine takes as input from the command line, the icon's
- # "startstring" from demobook. It strips out the demo's path from
- # the startstring, and then prints it out using the xconfirm utility.
- #
- # It assumes the "startstring" is of the form:
- #
- # cd $DEMOS/a/directory/path; some_more_commands
- #
- # and extracts the substring "a/directory/path", which is then
- # passed to xconfirm.
-
- string=$1
-
- substring=`echo $1 | cut -f1 -d";" | cut -f2 -d"$" | cut -f1 -d" " | tail +6c`
-
- /usr/bin/X11/xconfirm -header "FindLocation" -b "Dismiss" -t "The selected software is at:" -t " " -t " toolbox$substring" > /dev/null
-
-