home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hcshdemo.zip / csh-os2.zip / SAMPLES / SH_2_CSH.CSH < prev    next >
Text File  |  1994-06-13  |  621b  |  19 lines

  1. #    Convert Bourne or Korn shell scripts to Hamilton C shell scripts
  2.  
  3. #    Copyright (c) 1992-1994 by Hamilton Laboratories.  All rights reserved.
  4.  
  5. #    Documentation of the technique is in the same sh_2_csh subdirectory
  6. #    with the sed scripts.
  7.  
  8. local seddir, infile
  9.  
  10. set seddir = $scriptname:h\sh_2_csh
  11. if (! -e $seddir || ! -D $seddir) then
  12.     echo -2 "sh_2_csh:  Couldn't find the sed scripts."
  13.     exit 1
  14. end
  15. @ infile = $?argv ? fullpath($0) : ''
  16.  
  17. cd +c $seddir
  18. sed -f expr.sed $infile | sed -f if.sed | sed -f proc.sed | sed -f case.sed | sed -f for.sed | sed -f misc.sed | sed -f expr2.sed | sed -f quotes.sed
  19.