dos_compilers/Microsoft COBOL v112/m.sh
2024-07-24 06:56:04 -07:00

17 lines
324 B
Bash

str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.OBJ 2>/dev/null
rm $str.LST 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.EXE 2>/dev/null
ntvdm -u -r:. -h -c -d COBOL $str,$str,$str/D\;
ntvdm -u -h -c -r:. LINK $str,$str,$str,C:\;
rm $str.OBJ 2>/dev/null
rm $str.LST 2>/dev/null
rm $str.MAP 2>/dev/null
ntvdm -u -r:. -c -m $str