summaryrefslogtreecommitdiff
path: root/windows/neo-vars/src/make-build.bat
diff options
context:
space:
mode:
authormartin_r <martin_r@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-13 17:18:33 +0000
committermartin_r <martin_r@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-13 17:18:33 +0000
commitd2a544042b1045b3d707095ab3f63d6fd07ef957 (patch)
tree11b0a699bf8afbe9bb516be4fa0611c0431e2384 /windows/neo-vars/src/make-build.bat
parent22000d59b5c0fb737a0f683f2be5e71bc11f71a1 (diff)
downloadneo-layout-d2a544042b1045b3d707095ab3f63d6fd07ef957.tar.gz
neo-layout-d2a544042b1045b3d707095ab3f63d6fd07ef957.tar.bz2
neo-layout-d2a544042b1045b3d707095ab3f63d6fd07ef957.zip
git-svn-id: https://svn.neo-layout.org@1188 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/neo-vars/src/make-build.bat')
-rw-r--r--windows/neo-vars/src/make-build.bat43
1 files changed, 43 insertions, 0 deletions
diff --git a/windows/neo-vars/src/make-build.bat b/windows/neo-vars/src/make-build.bat
new file mode 100644
index 0000000..50c688a
--- /dev/null
+++ b/windows/neo-vars/src/make-build.bat
@@ -0,0 +1,43 @@
+@echo off
+
+echo Setting local path variables
+:: 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 outdir=..\out
+set Ssrcdir=%srcdir%\source
+set ahkrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.ahk
+set ahkrevoutput1=%Ssrcdir%\_subwcrev1.ahk
+set batrevtemplate1=%Ssrcdir%\_subwcrev1.tmpl.bat
+set batrevoutput1=%Ssrcdir%\_subwcrev1.bat
+
+REM The path to the directory used for generating a consistent SVN version (revision number)
+set svnversiondir1=.
+
+echo Generating Version File
+"%SubWCRev%" "%svnversiondir1%" "%ahkrevtemplate1%" "%ahkrevoutput1%"
+"%SubWCRev%" "%svnversiondir1%" "%batrevtemplate1%" "%batrevoutput1%"
+call "%batrevoutput1%"
+
+set fnexe=%outdir%\neo20.exe
+"%SubWCRev%" "%svnversiondir1%" -nm
+if errorlevel 1 (
+ set fnexe=%outdir%\neo20-r%Revision%.exe
+)
+
+echo removing old version(s) of NEO AHK Exe file
+del "%outdir%\neo20-r*.exe" 2> nul
+
+set fnahk=%srcdir%\neo20-all.ahk
+
+echo Compiling the new Driver using Autohotkey
+"%Ahk2Exe%" /in "%fnahk%" /out "%fnexe%" /icon "%srcdir%\neo_enabled.ico"
+
+echo Driver Update complete! You can now close this log-window.
+pause