From a54607622a4acfa0fa08efc2b5d527e2ef857dae Mon Sep 17 00:00:00 2001 From: David Lee Date: Thu, 4 Jul 2024 14:12:47 -0700 Subject: [PATCH] linux build --- Microsoft QuickBASIC v1/m.bat | 4 ++-- Microsoft QuickBASIC v1/m.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 Microsoft QuickBASIC v1/m.sh diff --git a/Microsoft QuickBASIC v1/m.bat b/Microsoft QuickBASIC v1/m.bat index 0a2837c..8c95357 100644 --- a/Microsoft QuickBASIC v1/m.bat +++ b/Microsoft QuickBASIC v1/m.bat @@ -1,5 +1,5 @@ -ntvdm -c bascom %1.bas,,, -ntvdm -c link %1,,%1,.\,nul.def +ntvdm -c bascom %1.bas,,,; +ntvdm -c link %1,,%1,,,; ntvdm %1 diff --git a/Microsoft QuickBASIC v1/m.sh b/Microsoft QuickBASIC v1/m.sh new file mode 100644 index 0000000..4acfec3 --- /dev/null +++ b/Microsoft QuickBASIC v1/m.sh @@ -0,0 +1,17 @@ +str=$(tr '[a-z]' '[A-Z]' <<< $1) + +rm $str.EXE 2>/dev/null +rm $str.MAP 2>/dev/null +rm $str.OBJ 2>/dev/null +rm $str.LST 2>/dev/null + +ntvdm -r:. -u -c bascom $str.bas,,,\; +ntvdm -r:. -u -c link $str,,$str,,,\; + +rm $str.MAP 2>/dev/null +rm $str.OBJ 2>/dev/null +rm $str.LST 2>/dev/null + +ntvdm -r:. -u -c $str + +