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 >
Wrap
Text File
|
1994-06-13
|
621b
|
19 lines
# Convert Bourne or Korn shell scripts to Hamilton C shell scripts
# Copyright (c) 1992-1994 by Hamilton Laboratories. All rights reserved.
# Documentation of the technique is in the same sh_2_csh subdirectory
# with the sed scripts.
local seddir, infile
set seddir = $scriptname:h\sh_2_csh
if (! -e $seddir || ! -D $seddir) then
echo -2 "sh_2_csh: Couldn't find the sed scripts."
exit 1
end
@ infile = $?argv ? fullpath($0) : ''
cd +c $seddir
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