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

Revision 1609, 1.6 KB (checked in by dennis, 4 years ago)

Update der PNG’s in eine eigene Make-Datei ausgelagert.

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.generated.ahk
17set batrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.bat
18set   batrevoutput1=%Ssrcdir%\_subwcrev1.bat
19
20set     NEO2AppData=%APPDATA%\NEO2
21set       customahk=%NEO2AppData%\custom.ahk
22set  customahkbuild=%customahk%.buildtmp
23
24REM The path to the directory used for generating a consistent SVN version (revision number)
25set svnversiondir1=.
26
27echo Generating Version File
28"%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%"
29"%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%"
30call "%batrevoutput1%"
31
32set fnexe=%outdir%\neo20.exe
33"%SubWCRev%" "%svnversiondir1%" -nm
34if errorlevel 1 (
35  set fnexe=%outdir%\neo20-r%Revision%.exe
36)
37
38echo removing old version(s) of NEO AHK Exe file
39del "%outdir%\neo20-r*.exe" 2> nul
40
41set fnahk=%srcdir%\neo20-all.ahk
42
43if exist "%customahk%" (
44  ren "%customahk%" "%customahkbuild%"
45)
46
47echo Compiling the new Driver using Autohotkey
48"%Ahk2Exe%" /in "%fnahk%" /out "%fnexe%" /icon "%srcdir%\neo_enabled.ico"
49
50if exist "%customahkbuild%" (
51  ren "%customahkbuild%" "%customahk%"
52)
53
54echo Driver Update complete! You can now close this log-window.
55pause
Note: See TracBrowser for help on using the browser.