You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
355 B
Batchfile
15 lines
355 B
Batchfile
4 years ago
|
@echo off
|
||
|
if [%1]==[] goto err
|
||
|
|
||
|
powershell -File "%~dp0set-version.ps1" %1 > "%temp%\ottd-set-version.bat"
|
||
|
if not errorlevel 0 goto err
|
||
|
call "%temp%\ottd-set-version.bat"
|
||
|
del /q "%temp%\ottd-set-version.bat"
|
||
|
|
||
|
@rem Version number will now be in %OTTD_VERSION%
|
||
|
|
||
|
goto :eof
|
||
|
|
||
|
:err
|
||
|
echo Please supply the path of openttd.exe as the argument to this batch file.
|