| 1 | @echo off |
|---|
| 2 | |
|---|
| 3 | echo Setting local path variables |
|---|
| 4 | :: TortoiseSVN and its clever tool SubWCRev |
|---|
| 5 | set Tsvnpath=C:\Programme\TortoiseSVN\bin |
|---|
| 6 | set SubWCRev=%Tsvnpath%\SubWCRev.exe |
|---|
| 7 | |
|---|
| 8 | set ahkpath=C:\Programme\AutoHotkey |
|---|
| 9 | set Ahk2Exe=%ahkpath%\Compiler\Ahk2Exe.exe |
|---|
| 10 | |
|---|
| 11 | REM The path to the authohotkey directory in the local svn copy, MUST be "." |
|---|
| 12 | set srcdir=. |
|---|
| 13 | set outdir=..\out |
|---|
| 14 | set Ssrcdir=%srcdir%\source_ |
|---|
| 15 | set ahkrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.ahk |
|---|
| 16 | set ahkrevoutput1=%Ssrcdir%\_subwcrev1.ahk |
|---|
| 17 | set batrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.bat |
|---|
| 18 | set batrevoutput1=%Ssrcdir%\_subwcrev1.bat |
|---|
| 19 | |
|---|
| 20 | REM The path to the directory used for generating a consistent SVN version (revision number) |
|---|
| 21 | set svnversiondir1=. |
|---|
| 22 | |
|---|
| 23 | echo Generating Version File |
|---|
| 24 | "%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%" |
|---|
| 25 | "%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%" |
|---|
| 26 | call "%batrevoutput1%" |
|---|
| 27 | |
|---|
| 28 | set fnexe=%outdir%\neo20.exe |
|---|
| 29 | "%SubWCRev%" "%svnversiondir1%" -nm |
|---|
| 30 | if errorlevel 1 ( |
|---|
| 31 | set fnexe=%outdir%\neo20-r%Revision%.exe |
|---|
| 32 | ) |
|---|
| 33 | |
|---|
| 34 | echo removing old version(s) of NEO AHK Exe file |
|---|
| 35 | del "%outdir%\neo20-r*.exe" 2> nul |
|---|
| 36 | |
|---|
| 37 | set fnahk=%srcdir%\neo20-all.ahk |
|---|
| 38 | |
|---|
| 39 | echo Compiling the new Driver using Autohotkey |
|---|
| 40 | "%Ahk2Exe%" /in "%fnahk%" /out "%fnexe%" /icon "%srcdir%\neo_enabled.ico" |
|---|
| 41 | |
|---|
| 42 | echo Driver Update complete! You can now close this log-window. |
|---|
| 43 | pause |
|---|