root/windows/neo-vars/src/make-build.bat @ 1188

Revision 1188, 1.3 KB (checked in by martin_r, 5 years ago)
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 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
19
20REM The path to the directory used for generating a consistent SVN version (revision number)
21set svnversiondir1=.
22
23echo Generating Version File
24"%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%"
25"%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%"
26call "%batrevoutput1%"
27
28set fnexe=%outdir%\neo20.exe
29"%SubWCRev%" "%svnversiondir1%" -nm
30if errorlevel 1 (
31  set fnexe=%outdir%\neo20-r%Revision%.exe
32)
33
34echo removing old version(s) of NEO AHK Exe file
35del "%outdir%\neo20-r*.exe" 2> nul
36
37set fnahk=%srcdir%\neo20-all.ahk
38
39echo Compiling the new Driver using Autohotkey
40"%Ahk2Exe%" /in "%fnahk%" /out "%fnexe%" /icon "%srcdir%\neo_enabled.ico"
41
42echo Driver Update complete! You can now close this log-window.
43pause
Note: See TracBrowser for help on using the browser.