root/windows/neo-vars/Make-Build.bat @ 1099

Revision 1099, 1.8 KB (checked in by mösi, 5 years ago)

• getrennte Revisionsnummern für das AHK-Skript und das an völlig anderer Stelle liegende Compose-Directory implementiert. Sollte später durch einen Konsistenzcheck ersetzt werden, damit man nur eine Revisionsnummer braucht.

Line 
1@echo off
2
3echo Setting local path variables
4:: TortoiseSVN and its clever tool SubWCRev
5set Tsvnpath=C:\Programme\TortoiseSVN\bin
6set SubWCRev=%Tsvnpath%\SubWCRev.exe
7
8set  ahkpath=C:\Programme\AutoHotkey
9set  Ahk2Exe=%ahkpath%\Compiler\Ahk2Exe.exe
10
11REM The path to the authohotkey directory in the local svn copy, MUST be "."
12set srcdir=.
13set Ssrcdir=%srcdir%\Source
14set ahkrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.ahk
15set   ahkrevoutput1=%Ssrcdir%\_subwcrev1.ahk
16set batrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.bat
17set   batrevoutput1=%Ssrcdir%\_subwcrev1.bat
18set ahkrevtemplate2=%Ssrcdir%\_subwcrev2.tmpl.ahk
19set   ahkrevoutput2=%Ssrcdir%\_subwcrev2.ahk
20
21REM The path to the directory used for generating a consistent SVN version (revision number)
22set svnversiondir1=.
23set svnversiondir2=..\..\Compose
24
25:next1
26echo Generating Version File
27"%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%"
28"%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%"
29"%SubWCRev%" "%svnversiondir2%" "%ahkrevtemplate2%" "%ahkrevoutput2%"
30call "%batrevoutput1%"
31
32set fn=%srcdir%\neo20-r%Revision%
33
34echo Compiling Compose sequences
35%Ssrcdir%\makecompose.ahk
36
37rem echo Killing the old (AHK)Driver
38rem tskill %fn%
39
40echo removing old version(s) of NEO AHK Exe file
41del %srcdir%\neo20-r*.exe %srcdir%\neo20-r*.ahk 2> nul
42
43echo creating all-in-one script
44echo ; Gesamtdatei > %fn%.ahk
45
46for %%i in (_subwcrev1 _subwcrev2 en_us neocomp neovarscomp keydefinitions shortcuts recycle keyhooks varsfunctions) do (type "%Ssrcdir%\%%i.ahk" >> "%fn%.ahk")
47
48echo Compiling the new Driver using Autohotkey
49"%Ahk2Exe%" /in "%fn%.ahk" /out "%fn%.exe" /icon "%srcdir%\neo_enabled.ico"
50
51echo Driver Update complete! You can now close this log-window.
52pause
Note: See TracBrowser for help on using the browser.