neo-layout/windows/neo-vars/build/make-build.bat

57 lines
1.7 KiB
Batchfile
Raw Normal View History

2008-10-30 01:29:03 +01:00
@echo off
echo Setting default local path variables
2008-11-03 12:39:41 +01:00
:: TortoiseSVN and its clever tool SubWCRev
set Tsvnpath=C:\Program Files\TortoiseSVN\bin
set ahkpath=C:\Program Files (x86)\AutoHotkey
if exist _local_paths.bat call _local_paths.bat
set SubWCRev=%Tsvnpath%\SubWCRev.exe
2008-11-03 12:39:41 +01:00
set Ahk2Exe=%ahkpath%\Compiler\Ahk2Exe.exe
REM The path to the authohotkey directory in the local svn copy, MUST be "."
set srcdir=..\src
set bindir=..\bin
set ahkrevtemplate1=%srcdir%\_subwcrev1.tmpl.ahk
set ahkrevoutput1=%srcdir%\_subwcrev1.generated.ahk
set batrevtemplate1=%srcdir%\_subwcrev1.tmpl.bat
set batrevoutput1=%srcdir%\_subwcrev1.bat
2008-11-03 12:39:41 +01:00
set NEO2AppData=%APPDATA%\NEO2
set customahk=%NEO2AppData%\custom.ahk
set customahkbuild=%customahk%.buildtmp
2008-11-03 12:39:41 +01:00
REM The path to the directory used for generating a consistent SVN version (revision number)
set svnversiondir1=.
2008-11-03 12:39:41 +01:00
echo Generating Version File
"%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%"
"%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%"
call "%batrevoutput1%"
2008-11-03 12:39:41 +01:00
set fnexe=%bindir%\neo20.exe
2008-11-03 17:00:11 +01:00
"%SubWCRev%" "%svnversiondir1%" -nm
if errorlevel 1 (
set fnexe=%bindir%\neo20-r%Revision%.exe
)
2008-10-30 01:29:03 +01:00
2008-11-03 12:39:41 +01:00
echo removing old version(s) of NEO AHK Exe file
del "%bindir%\neo20-r*.exe" 2> nul
2008-11-03 12:39:41 +01:00
set fnahk=%srcdir%\neo20-all.ahk
if exist "%customahk%" (
move "%customahk%" "%customahkbuild%"
)
2008-10-30 01:29:03 +01:00
echo Compiling the new Driver using Autohotkey
2008-11-03 17:00:11 +01:00
"%Ahk2Exe%" /in "%fnahk%" /out "%fnexe%" /icon "%srcdir%\neo_enabled.ico"
2008-10-30 01:29:03 +01:00
if exist "%customahkbuild%" (
move "%customahkbuild%" "%customahk%"
)
2008-10-30 01:29:03 +01:00
echo Driver Update complete! You can now close this log-window.
pause