| Revision 1075,
523 bytes
checked in by lowjoel, 4 years ago
(diff) |
|
Automatically version the assemblies' revision number based on the SVN revision number.
|
| Line | |
|---|
| 1 | @echo off |
|---|
| 2 | rem Replace all template version placeholders in the given template file for keywords. |
|---|
| 3 | |
|---|
| 4 | if not exist "%ProgramFiles%\TortoiseSVN\bin\SubWCRev.exe" goto searchWoWProgramFiles |
|---|
| 5 | "%ProgramFiles%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f |
|---|
| 6 | if ERRORLEVEL 1 ( |
|---|
| 7 | goto noSubWCRev |
|---|
| 8 | ) |
|---|
| 9 | goto end |
|---|
| 10 | |
|---|
| 11 | :searchWoWProgramFiles |
|---|
| 12 | |
|---|
| 13 | "%ProgramW6432%\TortoiseSVN\bin\SubWCRev.exe" %1 %2 %3 -f |
|---|
| 14 | if ERRORLEVEL 1 ( |
|---|
| 15 | goto noSubWCRev |
|---|
| 16 | ) |
|---|
| 17 | |
|---|
| 18 | goto end |
|---|
| 19 | |
|---|
| 20 | :noSubWCRev |
|---|
| 21 | echo No TortoiseSVN-Client (SubWCRev.exe) detected! |
|---|
| 22 | exit /b 1 |
|---|
| 23 | |
|---|
| 24 | :end |
|---|
Note: See
TracBrowser
for help on using the repository browser.