Skip to content

Commit ba0d061

Browse files
committed
Fixes windows BAT files.
1 parent 851a523 commit ba0d061

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler/fb-int.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ set extra=
1717
set opt=%1
1818
if "%opt%"=="-h" call :usage & exit /b
1919
if "%opt:~0,1%"=="-" set opts=%opts% %~1 & goto :nextarg
20-
if /l "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
21-
if /l "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
20+
if /i "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
21+
if /i "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
2222
if not "%prog%"=="" call :error specify only one basic file & exit /b
2323
set prog=%~nx1
2424
set basfile=%~dpnx1
@@ -39,7 +39,7 @@ if "%basfile%"=="%xexfile%" call :error input file '%prog%' same as XEX file & e
3939
if "%basfile%"=="%lblfile%" call :error input file '%prog%' same as LBL file & exit /b
4040

4141
echo Compiling '%prog%' to assembler.
42-
%fbpath%%fb% %* %asmfile% || exit /b %errorlevel%
42+
%fbpath%%fb% %opts% %basfile% %asmfile% || exit /b %errorlevel%
4343
echo Assembling '%asmfile%%extra%' to XEX file.
4444
%cc65%cl65 -tatari -C %fbpath%fastbasic.cfg -g %asmfile% %extra% -o %xexfile% -Ln %lblfile% %fbpath%%fb%.lib || exit /b %errorlevel%
4545

compiler/fb.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ set extra=
1717
set opt=%1
1818
if "%opt%"=="-h" call :usage & exit /b
1919
if "%opt:~0,1%"=="-" set opts=%opts% %~1 & goto :nextarg
20-
if /l "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
21-
if /l "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
20+
if /i "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
21+
if /i "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
2222
if not "%prog%"=="" call :error specify only one basic file & exit /b
2323
set prog=%~nx1
2424
set basfile=%~dpnx1
@@ -39,7 +39,7 @@ if "%basfile%"=="%xexfile%" call :error input file '%prog%' same as XEX file & e
3939
if "%basfile%"=="%lblfile%" call :error input file '%prog%' same as LBL file & exit /b
4040

4141
echo Compiling '%prog%' to assembler.
42-
%fbpath%%fb% %* %asmfile% || exit /b %errorlevel%
42+
%fbpath%%fb% %opts% %basfile% %asmfile% || exit /b %errorlevel%
4343
echo Assembling '%asmfile%%extra%' to XEX file.
4444
%cc65%cl65 -tatari -C %fbpath%fastbasic.cfg -g %asmfile% %extra% -o %xexfile% -Ln %lblfile% %fbpath%%fb%.lib || exit /b %errorlevel%
4545

0 commit comments

Comments
 (0)