dos_compilers/Microsoft COBOL v112/m.sh

17 lines
324 B
Bash
Raw Normal View History

2024-07-24 15:56:04 +02:00
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