summaryrefslogtreecommitdiffstats
path: root/UpdateVersions.cmd
blob: b724990bb7238caa4e1062753be2662d17cd0ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
:: UpdateVersions.cmd
:: This script processes all *.template files into their non-templated variants using subwcrev, substituting WC-related keywords in the process
:: subwcrev is expected to be in path; you can pass the correct path for your system as env var "subwcrev"


:: Subwcrev (from TortoiseSVN, for querying revision number; by default in PATH):
if %subwcrev%a == a set subwcrev=subwcrev




:: Copy all *.template files into their non-template versions, substituting SVN keywords:
for /r %%X in (*.template) do (
	%subwcrev% . "%%X" "%%~dpX%%~nX"
	if errorlevel 1 goto haderror
)


goto end




:haderror
echo an error was encountered, check command output above
pause
goto finished





:end
if "a%1" == "a" pause



:finished