aboutsummaryrefslogtreecommitdiff
path: root/math/slalib/doc/sedscript
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/slalib/doc/sedscript
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'math/slalib/doc/sedscript')
-rwxr-xr-xmath/slalib/doc/sedscript35
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