From e34a314d9afb10b282f43b3e63259c9172dc2977 Mon Sep 17 00:00:00 2001 From: mösi Date: Mon, 3 Nov 2008 11:39:41 +0000 Subject: git-svn-id: https://svn.neo-layout.org@1092 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- windows/neo-vars/Make-Build.bat | 50 +++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 14 deletions(-) (limited to 'windows/neo-vars/Make-Build.bat') diff --git a/windows/neo-vars/Make-Build.bat b/windows/neo-vars/Make-Build.bat index 2801584..9024562 100644 --- a/windows/neo-vars/Make-Build.bat +++ b/windows/neo-vars/Make-Build.bat @@ -1,24 +1,46 @@ @echo off echo Setting local path variables -REM The path to the Auto Hotkeyprogram: -set ahk=C:\Programme\AutoHotkey -REM The path to the authohotkey directory in the local svn copy: -set svn=. -REM The filename of the joined script: -set fn=neo20-vars +:: TortoiseSVN and its clever tool SubWCRev +set Tsvnpath=C:\Programme\TortoiseSVN\bin +set SubWCRev=%Tsvnpath%\SubWCRev.exe + +set ahkpath=C:\Programme\AutoHotkey +set Ahk2Exe=%ahkpath%\Compiler\Ahk2Exe.exe + +REM The path to the authohotkey directory in the local svn copy, MUST be "." +set srcdir=. +set ahkrevtemplate=%srcdir%\_subwcrev.tmpl.ahk +set ahkrevoutput=%srcdir%\_subwcrev.ahk +set batrevtemplate=%srcdir%\_subwcrev.tmpl.bat +set batrevoutput=%srcdir%\_subwcrev.bat + +REM The path to the directory used for generating a consistent SVN version (revision number) +set svnversiondir=.. + +:next1 +echo Generating Version File +"%SubWCRev%" "%svnversiondir%" "%ahkrevtemplate%" "%ahkrevoutput%" -nm +if errorlevel 1 ( + echo Inconsistent Revision! Aborting +REM goto :eof +) +"%SubWCRev%" "%svnversiondir%" "%batrevtemplate%" "%batrevoutput%" +call "%batrevoutput%" + +set fn=%srcdir%\neo20-r%Revision% + +echo Compiling Compose sequences +%srcdir%\makecompose.ahk rem echo Killing the old (AHK)Driver rem tskill %fn% +echo removing old version(s) of NEO AHK Exe file +del %srcdir%\neo20-r*.exe 2> nul + echo Compiling the new Driver using Autohotkey -"%ahk%\Compiler\Ahk2Exe.exe" /in "%svn%\%fn%.ahk" /out "%svn%\%fn%.exe" /icon "%svn%\neo.ico" +"%Ahk2Exe%" /in "neo20-vars.ahk" /out "%fn%.exe" /icon "%srcdir%\neo.ico" echo Driver Update complete! You can now close this log-window. - -REM Start the new Driver -rem %fn%.exe - -REM wie kann man hier mit der Skriptabarbeitung weitermachen? Unter Windows XP scheint es nicht möglich zu sein, dies mit "Bordmitteln" zu erreichen, es gibt hierfür jedoch extere Programme, etwa: -REM Start the new driver asynchronously, using "Hidden Start" (hstart.exe) from http://www.ntwind.com/software/utilities/hstart/ -REM hstart.exe /NOCONSOLE /D="." "%fn%.exe" \ No newline at end of file +pause \ No newline at end of file -- cgit v1.2.3