home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / demos / demobook / find_location < prev    next >
Encoding:
Text File  |  1994-08-02  |  639 b   |  20 lines

  1. #!/bin/sh
  2.  
  3. #  This routine takes as input from the command line, the icon's
  4. #  "startstring" from demobook.  It strips out the demo's path from
  5. #  the startstring, and then prints it out using the xconfirm utility.
  6. #
  7. #  It assumes the "startstring" is of the form:
  8. #
  9. #      cd $DEMOS/a/directory/path; some_more_commands
  10. #
  11. #  and extracts the substring "a/directory/path", which is then
  12. #  passed to xconfirm.
  13.  
  14. string=$1
  15.  
  16. substring=`echo $1 | cut -f1 -d";" | cut -f2 -d"$" | cut -f1 -d" " | tail +6c`
  17.  
  18. /usr/bin/X11/xconfirm -header "FindLocation" -b "Dismiss" -t "The selected software is at:" -t " " -t "  toolbox$substring" > /dev/null
  19.  
  20.