dos_compilers/Microsoft COBOL v300A/m.sh

19 lines
372 B
Bash
Raw Normal View History

2024-07-24 16:15:16 +02:00
str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.EXE 2>/dev/null
rm $str.LST 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
rm $str.GRP 2>/dev/null
ntvdm -u -r:. -h -c COBOL $str,$str,$str,$str
ntvdm -u -h -c -r:. LINK $str,,$str,lcobol.lib,nul.def
rm $str.LST 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
rm $str.GRP 2>/dev/null
ntvdm -u -c $str