-#!/bin/bash
+#!/bin/sh
# FORTRAN IV compiler wrapper for simh h316
if [ ! $1 ] ; then
- echo "Argument fehlt!"
+ echo "Argument mssing!"
exit 2
fi
rm -f $name.lst
rm -f $name.obj
-echo "rest $H316/sys/frtn.sys" > $name.go
-echo "r" >> $name.go
-
-echo "at ptr $name.par" >> $name.go
-echo "at ptp $name.obj" >> $name.go
-echo "at tty3 $listfile" >> $name.go
-echo "set tty3 uascii" >> $name.go
-echo "set tty3 start" >> $name.go
-
-echo "d a 311" >> $name.go
-echo "d p 1000" >> $name.go
-echo "d ss1 0" >> $name.go
-echo "d ss2 1" >> $name.go
-echo "d ss3 0" >> $name.go
-echo "d ss4 0" >> $name.go
-echo "go" >> $name.go
-echo "quit" >> $name.go
+cat > $name.go <<EOF
+rest $H316/sys/frtn.sys" > $name.go
+r
+at ptr $name.par
+at ptp $name.obj
+at tty3 $listfile
+set tty3 uascii
+set tty3 start
+d a 311
+d p 1000
+d ss1 0
+d ss2 1
+d ss3 0
+d ss4 0
+go
+quit
+EOF
+
h316 $name.go > /dev/null
-#h316 $name.go > /dev/null
rm -f $name.par
rm -f $name.go