2021-01-10 15:49:37 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
IF %1.==. GOTO USAGE
|
2021-03-18 00:08:40 +01:00
|
|
|
|
|
|
|
rem remove extension ...
|
2021-02-27 15:51:47 +01:00
|
|
|
set BASENAME=%~n1
|
2021-03-18 00:08:40 +01:00
|
|
|
|
|
|
|
rem removing extension and get full path ...
|
|
|
|
set FULLBASE=%~dpn1
|
|
|
|
|
|
|
|
rem adding extension to fullbase again ...
|
|
|
|
set SOURCEFILE=%FULLBASE%.pb
|
2021-01-10 15:49:37 +01:00
|
|
|
|
2021-02-27 15:51:47 +01:00
|
|
|
pbcompiler /EXE %BASENAME%.exe /CONSOLE %SOURCEFILE%
|
2021-01-10 15:49:37 +01:00
|
|
|
GOTO END
|
|
|
|
|
|
|
|
:USAGE
|
|
|
|
echo "usage: %0 <PureBasic SOURCEFILE>"
|
|
|
|
|
|
|
|
:END
|
2021-03-13 18:53:25 +01:00
|
|
|
|