mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 01:29:10 +00:00
ai
data
docs
lang
makefiledir
media
music
openttd.xcode
os
debian
linux
macosx
morphos
os2
build_lang.cmd
dedicated.cmd
openttd.wpj
svn_version.cmd
svnver1.c
svnver2.c
win32
scenario
scripts
sound
strgen
table
video
COPYING
Doxyfile
Makefile
StdAfx.c
aircraft_cmd.c
aircraft_gui.c
airport.c
airport.h
airport_gui.c
airport_movement.h
aystar.c
aystar.h
bridge.h
bridge_gui.c
callback_table.c
callback_table.h
changelog.txt
clear_cmd.c
command.c
command.h
console.c
console.h
console_cmds.c
currency.c
currency.h
debug.c
debug.h
dedicated.c
depot.c
depot.h
disaster_cmd.c
dock_gui.c
driver.c
driver.h
dummy_land.c
economy.c
economy.h
endian_check.c
engine.c
engine.h
engine_gui.c
fileio.c
fileio.h
functions.h
gfx.c
gfx.h
gfxinit.c
gfxinit.h
graph_gui.c
gui.h
hal.h
industry.h
industry_cmd.c
industry_gui.c
intro_gui.c
known-bugs.txt
landscape.c
langs.dsp
langs.vcproj
lzoconf.h
macros.h
main_gui.c
mainicon.ico
map.c
map.h
md5.c
md5.h
mersenne.c
minilzo.c
minilzo.h
misc.c
misc_cmd.c
misc_gui.c
mixer.c
mixer.h
music_gui.c
namegen.c
namegen.h
network.c
network.h
network_client.c
network_client.h
network_core.h
network_data.c
network_data.h
network_gamelist.c
network_gamelist.h
network_gui.c
network_server.c
network_server.h
network_udp.c
network_udp.h
newgrf.c
newgrf.h
news.h
news_gui.c
npf.c
npf.h
oldloader.c
openttd.c
openttd.dsp
openttd.dsw
openttd.h
openttd.ico
openttd.sln
openttd.tgt
openttd.vcproj
order.h
order_cmd.c
order_gui.c
os2.c
ottdres.rc
pathfind.c
pathfind.h
player.h
player_gui.c
players.c
pool.c
pool.h
queue.c
queue.h
rail.c
rail.h
rail_cmd.c
rail_gui.c
railtypes.h
readme.txt
resource.h
road_cmd.c
road_gui.c
roadveh_cmd.c
roadveh_gui.c
saveload.c
saveload.h
screenshot.c
screenshot.h
sdl.c
sdl.h
settings.c
settings.h
settings_gui.c
ship_cmd.c
ship_gui.c
signs.c
signs.h
smallmap_gui.c
sound.c
sound.h
sprite.c
sprite.h
spritecache.c
spritecache.h
station.h
station_cmd.c
station_gui.c
station_newgrf.c
station_newgrf.h
stdafx.h
string.c
string.h
strings.c
strings.h
subsidy_gui.c
svnup.sh
terraform_gui.c
texteff.c
thread.c
thread.h
tile.c
tile.h
town.h
town_cmd.c
town_gui.c
train.h
train_cmd.c
train_gui.c
tree_cmd.c
tunnelbridge_cmd.c
unix.c
unmovable_cmd.c
variables.h
vehicle.c
vehicle.h
vehicle_gui.c
vehicle_gui.h
viewport.c
viewport.h
water_cmd.c
waypoint.c
waypoint.h
widget.c
win32.c
win32.h
win64.asm
window.c
window.h
31 lines
766 B
Batchfile
31 lines
766 B
Batchfile
@echo off
|
|
echo Running SVN version detection script...
|
|
rem
|
|
rem Requires subversion (`svnversion') to be installed
|
|
rem
|
|
cd ..\..
|
|
if not "%RELEASE%"=="" goto forcerelease
|
|
if not exist .svn goto nosvn
|
|
svnversion -n . > os\os2\svnver.tmp
|
|
if not "%ERRORLEVEL%"=="0" goto nosvn
|
|
|
|
copy os\os2\svnver1.c+os\os2\svnver.tmp+os\os2\svnver2.c rev.c /a /y > nul 2> nul
|
|
goto end
|
|
|
|
:forcerelease
|
|
echo Forcing release string "%RELEASE%"...
|
|
echo const char _openttd_revision[] = "%RELEASE%"; > rev.c
|
|
echo const int _revision_number = 0; >> rev.c
|
|
goto end
|
|
|
|
:nosvn
|
|
echo Error executing `svnversion' or no SVN data detected
|
|
echo const char _openttd_revision[] = "norev000"; > rev.c
|
|
echo const int _revision_number = 0; >> rev.c
|
|
goto end
|
|
|
|
:end
|
|
cd os\os2
|
|
del svnver.tmp > nul 2> nul
|
|
rem end
|