summaryrefslogtreecommitdiff
path: root/windows/neo-vars/src/make-compose.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-compose.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-compose.bat')
-rw-r--r--windows/neo-vars/src/make-compose.bat38
1 files changed, 38 insertions, 0 deletions
diff --git a/windows/neo-vars/src/make-compose.bat b/windows/neo-vars/src/make-compose.bat
new file mode 100644
index 0000000..f41555a
--- /dev/null
+++ b/windows/neo-vars/src/make-compose.bat
@@ -0,0 +1,38 @@
+@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 AutoHotKey=%ahkpath%\AutoHotKey.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 batrevtemplate2=%Ssrcdir%\_subwcrev2.tmpl.bat
+set batrevoutput2=%Ssrcdir%\_subwcrev2.bat
+
+REM The path to the directory used for generating a consistent SVN version (revision number)
+set svnversiondir2=..\..\..\Compose
+
+echo Generating Version File
+"%SubWCRev%" "%svnversiondir2%" "%batrevtemplate2%" "%batrevoutput2%"
+call "%batrevoutput2%"
+
+set fncomp=%Ssrcdir%\compose.generated.ahk
+"%SubWCRev%" "%svnversiondir2%" -nm
+if errorlevel 1 (
+ set fncomp=%Ssrcdir%\compose-tainted.generated.ahk
+)
+
+echo Deleting old Compose sequences
+del "%Ssrcdir%\Compose.generated.ahk" "%Ssrcdir%\Compose-tainted.generated.ahk" 2> nul
+
+echo Compiling Compose sequences
+"%AutoHotkey%" "%Ssrcdir%\makecompose.ahk" "%CompRevision%" "%fncomp%" "%svnversiondir2%\en_US.UTF-8" "%svnversiondir2%\Compose.neo"
+
+echo Compose Update complete! You can now close this log-window.
+pause