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

Revision 1591, 1.9 KB (checked in by dennis, 4 years ago)

Kleinere Korrektur.

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 download the latest images for the screen keyboard
48for /L %%e in (1,1,6) do make-wget.exe -q -O ebene%%e.png http://neo-layout.org/grafik/tastatur3d/haupt_ziffern_feld/tastatur_neo_Ebene%%e.png
49
50echo Compiling the new Driver using Autohotkey
51"%Ahk2Exe%" /in "%fnahk%" /out "%fnexe%" /icon "%srcdir%\neo_enabled.ico"
52
53if exist "%customahkbuild%" (
54  ren "%customahkbuild%" "%customahk%"
55)
56
57echo cleanup images
58for /L %%e in (1,1,6) do del ebene%%e.png
59
60echo Driver Update complete! You can now close this log-window.
61pause
Note: See TracBrowser for help on using the browser.