Skip to content

Commit

Permalink
Fixes windows BAT files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Feb 23, 2018
1 parent 851a523 commit ba0d061
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions compiler/fb-int.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ set extra=
set opt=%1
if "%opt%"=="-h" call :usage & exit /b
if "%opt:~0,1%"=="-" set opts=%opts% %~1 & goto :nextarg
if /l "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
if /l "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
if /i "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
if /i "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
if not "%prog%"=="" call :error specify only one basic file & exit /b
set prog=%~nx1
set basfile=%~dpnx1
Expand All @@ -39,7 +39,7 @@ if "%basfile%"=="%xexfile%" call :error input file '%prog%' same as XEX file & e
if "%basfile%"=="%lblfile%" call :error input file '%prog%' same as LBL file & exit /b

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

Expand Down
6 changes: 3 additions & 3 deletions compiler/fb.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ set extra=
set opt=%1
if "%opt%"=="-h" call :usage & exit /b
if "%opt:~0,1%"=="-" set opts=%opts% %~1 & goto :nextarg
if /l "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
if /l "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
if /i "%~x1"==".asm" set extra=%extra% %~1 & goto :nextarg
if /i "%~x1"==".o" set extra=%extra% %~1 & goto :nextarg
if not "%prog%"=="" call :error specify only one basic file & exit /b
set prog=%~nx1
set basfile=%~dpnx1
Expand All @@ -39,7 +39,7 @@ if "%basfile%"=="%xexfile%" call :error input file '%prog%' same as XEX file & e
if "%basfile%"=="%lblfile%" call :error input file '%prog%' same as LBL file & exit /b

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

Expand Down

0 comments on commit ba0d061

Please sign in to comment.