diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/slalib/doc/sedscript | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'math/slalib/doc/sedscript')
-rwxr-xr-x | math/slalib/doc/sedscript | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/math/slalib/doc/sedscript b/math/slalib/doc/sedscript new file mode 100755 index 00000000..3797f980 --- /dev/null +++ b/math/slalib/doc/sedscript @@ -0,0 +1,35 @@ +#!/bin/csh + +# EZSEDSCRIPT -- Script for automatically creating simple help for the +# SLALIB FORTRAN routines. +# +# First argument $1 is the month and year combined, e.g. Jun84 + +foreach file (../*.f) + set rootfile = `basename $file .f` + set package = '"Slalib Package"' + set outfile = $rootfile.hlp + set d = `echo \$d` + set s = `echo \$s` + echo $outfile + echo "1i\\ +.help $rootfile $1 $package\\ +.nf\\ +\ +/^\*-/a\\ +\\ +.fi\\ +.endhelp\ +/^\*-/,$d\ +1,$s/^*+//\ +1,$s/^*//" > tmpfile + sed -f tmpfile $file > $outfile + rm tmpfile +end + +rm atms.hlp +rm atmt.hlp +rm idchf.hlp +rm idchi.hlp +rm sla_test.hlp +cp slalib.hlp.sav slalib.hlp |