# Toplevel Makefile for Hachti's H316 stuff collection
-SUBDIRS=pc-tools/ldc pc-tools/src-filters pc-tools/boot-maker lib/iolib lib/fortran docs/manual\
+SUBDIRS=pc-tools/ldc pc-tools/src-filters pc-tools/boot-maker lib/iolib lib/fortran \
lib/fortran lib/fortran/vpunch-help lib/iolib programs/mandelbrot\
- programs/punchomat
+ programs/punchomat docs/manual
default:
-#!/bin/bash
+#!/bin/sh
# Assembler wrapper for simh h316
if [ ! $1 ] ; then
- echo "Argument fehlt!"
+ echo "Argument mising!"
exit 2
fi
listfile=$name.lst
cat $1 | tab | paron > $name.par
+
rm -f $name.lst
rm -f $name.obj
-echo "rest $H316/sys/dap.sys" > $name.go
-echo "d a 120420" >> $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 "go" >> $name.go
-echo "d ptr pos 0" >> $name.go
-echo "go" >> $name.go
-echo "quit" >> $name.go
+cat > $name.go <<EOF
+rest $H316/sys/dap.sys
+d a 120420
+at ptr $name.par
+at ptp $name.obj
+at tty3 $listfile
+set tty3 uascii
+set tty3 start
+go
+d ptr pos 0
+go
+quit
+EOF
+
h316 $name.go > /dev/null
rm -f $name.par
# FORTRAN IV compiler wrapper for simh h316
if [ ! $1 ] ; then
- echo "Argument mssing!"
+ echo "Argument missing!"
exit 2
fi