linux build

This commit is contained in:
David Lee 2024-07-24 07:24:50 -07:00
parent 59ba7ec487
commit e24c793133
2 changed files with 20 additions and 1 deletions

View File

@ -1,7 +1,7 @@
del %1.obj del %1.obj
del %1.exe del %1.exe
ntvdm -r:.. -m -c -d -e:path=c:\binb;c:\binr cobol %1,%1,%1,%1 ntvdm -r:.. -c -e:path=c:\binb;c:\binr cobol %1,%1,%1,%1
ntvdm -h -c -r:.. -e:lib=c:\lib link %1,,%1,,nul.def ntvdm -h -c -r:.. -e:lib=c:\lib link %1,,%1,,nul.def

View File

@ -0,0 +1,19 @@
str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.EXE 2>/dev/null
rm $str.LST 2>/dev/null
rm $str.GRP 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
ntvdm -u -r:.. -c -e:path=c:\\binb\;c:\\binr COBOL $str,$str,$str,$str
ntvdm -u -h -c -r:.. -e:lib=c:\\lib LINK $str,,$str,,nul.def
rm $str.LST 2>/dev/null
rm $str.GRP 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
ntvdm -u -c -m -r:.. -e:path=c:\\binb\;c:\\binr $str