home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / sh-utils-1.12-src.tgz / tar.out / fsf / sh-utils / src / true.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1996-09-28  |  324b  |  22 lines

  1. #!/bin/sh
  2.  
  3. usage="Usage: $0 [OPTION]...
  4.  
  5.    --help      display this help and exit
  6.    --version   output version information and exit"
  7.  
  8. case $# in
  9.   1 )
  10.     case "z${1}" in 
  11.       z--help )
  12.      echo "$usage"; exit 0 ;;
  13.       z--version )
  14.      echo "true - @VERSION@"; exit 0 ;;
  15.       * ) ;;
  16.     esac
  17.     ;;
  18.   * ) ;;
  19. esac
  20.  
  21. exit 0
  22.