diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-05 17:45:20 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-05 17:45:20 +0100 |
commit | 0633c2440bdc3c141ff701d722551923ffd60435 (patch) | |
tree | e83890b0188c3578184495f900fefbde8b509bc4 | |
parent | WSS conversion quickfix: reserving memory so that AString doesn't need to re-alloc (but still uses painfully slow push_back()s ) (diff) | |
download | cuberite-0633c2440bdc3c141ff701d722551923ffd60435.tar cuberite-0633c2440bdc3c141ff701d722551923ffd60435.tar.gz cuberite-0633c2440bdc3c141ff701d722551923ffd60435.tar.bz2 cuberite-0633c2440bdc3c141ff701d722551923ffd60435.tar.lz cuberite-0633c2440bdc3c141ff701d722551923ffd60435.tar.xz cuberite-0633c2440bdc3c141ff701d722551923ffd60435.tar.zst cuberite-0633c2440bdc3c141ff701d722551923ffd60435.zip |
-rw-r--r-- | UpdateVersions.cmd | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/UpdateVersions.cmd b/UpdateVersions.cmd new file mode 100644 index 000000000..b724990bb --- /dev/null +++ b/UpdateVersions.cmd @@ -0,0 +1,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
\ No newline at end of file |