source: windows/neo-vars/src/Make-Build.bat @ 1113

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