| 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 Ssrcdir=%srcdir%\Source
|
|---|
| 14 | set ahkrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.ahk
|
|---|
| 15 | set ahkrevoutput1=%Ssrcdir%\_subwcrev1.ahk
|
|---|
| 16 | set batrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.bat
|
|---|
| 17 | set batrevoutput1=%Ssrcdir%\_subwcrev1.bat
|
|---|
| 18 | set ahkrevtemplate2=%Ssrcdir%\_subwcrev2.tmpl.ahk
|
|---|
| 19 | set ahkrevoutput2=%Ssrcdir%\_subwcrev2.ahk
|
|---|
| 20 |
|
|---|
| 21 | REM The path to the directory used for generating a consistent SVN version (revision number)
|
|---|
| 22 | set svnversiondir1=.
|
|---|
| 23 | set svnversiondir2=..\..\Compose
|
|---|
| 24 |
|
|---|
| 25 | :next1
|
|---|
| 26 | echo Generating Version File
|
|---|
| 27 | "%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%"
|
|---|
| 28 | "%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%"
|
|---|
| 29 | "%SubWCRev%" "%svnversiondir2%" "%ahkrevtemplate2%" "%ahkrevoutput2%"
|
|---|
| 30 | call "%batrevoutput1%"
|
|---|
| 31 |
|
|---|
| 32 | set fn=%srcdir%\neo20-r%Revision%
|
|---|
| 33 |
|
|---|
| 34 | echo Compiling Compose sequences
|
|---|
| 35 | %Ssrcdir%\makecompose.ahk
|
|---|
| 36 |
|
|---|
| 37 | rem echo Killing the old (AHK)Driver
|
|---|
| 38 | rem tskill %fn%
|
|---|
| 39 |
|
|---|
| 40 | echo removing old version(s) of NEO AHK Exe file
|
|---|
| 41 | del %srcdir%\neo20-r*.exe %srcdir%\neo20-r*.ahk 2> nul
|
|---|
| 42 |
|
|---|
| 43 | echo creating all-in-one script
|
|---|
| 44 | echo ; Gesamtdatei > %fn%.ahk
|
|---|
| 45 |
|
|---|
| 46 | for %%i in (_subwcrev1 _subwcrev2 en_us neocomp neovarscomp keydefinitions shortcuts recycle keyhooks varsfunctions) do (type "%Ssrcdir%\%%i.ahk" >> "%fn%.ahk")
|
|---|
| 47 |
|
|---|
| 48 | echo Compiling the new Driver using Autohotkey
|
|---|
| 49 | "%Ahk2Exe%" /in "%fn%.ahk" /out "%fn%.exe" /icon "%srcdir%\neo_enabled.ico"
|
|---|
| 50 |
|
|---|
| 51 | echo Driver Update complete! You can now close this log-window.
|
|---|
| 52 | pause |
|---|