2008-10-30 01:29:03 +01:00
|
|
|
@echo off
|
|
|
|
|
2012-02-21 16:24:11 +01:00
|
|
|
echo Setting default local path variables
|
2008-11-03 12:39:41 +01:00
|
|
|
:: TortoiseSVN and its clever tool SubWCRev
|
2014-08-09 14:47:46 +02:00
|
|
|
set Tsvnpath=C:\Program Files\TortoiseSVN\bin
|
|
|
|
set ahkpath=C:\Program Files (x86)\AutoHotkey
|
2012-02-21 16:24:11 +01:00
|
|
|
|
|
|
|
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 "."
|
2020-05-29 00:41:33 +02:00
|
|
|
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
|
|
|
|
2008-11-26 21:32:13 +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)
|
2008-11-03 16:42:12 +01:00
|
|
|
set svnversiondir1=.
|
2008-11-03 12:39:41 +01:00
|
|
|
|
|
|
|
echo Generating Version File
|
2008-11-03 16:42:12 +01:00
|
|
|
"%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%"
|
|
|
|
"%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%"
|
|
|
|
call "%batrevoutput1%"
|
2008-11-03 12:39:41 +01:00
|
|
|
|
2020-05-29 00:41:33 +02:00
|
|
|
set fnexe=%bindir%\neo20.exe
|
2008-11-03 17:00:11 +01:00
|
|
|
"%SubWCRev%" "%svnversiondir1%" -nm
|
|
|
|
if errorlevel 1 (
|
2020-05-29 00:41:33 +02:00
|
|
|
set fnexe=%bindir%\neo20-r%Revision%.exe
|
2008-11-12 12:14:39 +01:00
|
|
|
)
|
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
|
2020-05-29 00:41:33 +02:00
|
|
|
del "%bindir%\neo20-r*.exe" 2> nul
|
2008-11-03 12:39:41 +01:00
|
|
|
|
2008-11-12 18:59:30 +01:00
|
|
|
set fnahk=%srcdir%\neo20-all.ahk
|
2008-11-03 14:54:12 +01:00
|
|
|
|
2008-11-26 21:32:13 +01:00
|
|
|
if exist "%customahk%" (
|
2009-07-09 18:28:05 +02:00
|
|
|
move "%customahk%" "%customahkbuild%"
|
2008-11-26 21:32:13 +01:00
|
|
|
)
|
|
|
|
|
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
|
|
|
|
2008-11-26 21:32:13 +01:00
|
|
|
if exist "%customahkbuild%" (
|
2009-07-09 18:28:05 +02:00
|
|
|
move "%customahkbuild%" "%customahk%"
|
2008-11-26 21:32:13 +01:00
|
|
|
)
|
|
|
|
|
2008-10-30 01:29:03 +01:00
|
|
|
echo Driver Update complete! You can now close this log-window.
|
2008-11-06 04:13:57 +01:00
|
|
|
pause
|