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