summaryrefslogtreecommitdiff
path: root/dist/win/vc9/extract_version_numbers.bat
diff options
context:
space:
mode:
Diffstat (limited to 'dist/win/vc9/extract_version_numbers.bat')
-rw-r--r--dist/win/vc9/extract_version_numbers.bat7
1 files changed, 7 insertions, 0 deletions
diff --git a/dist/win/vc9/extract_version_numbers.bat b/dist/win/vc9/extract_version_numbers.bat
new file mode 100644
index 00000000..71a339cd
--- /dev/null
+++ b/dist/win/vc9/extract_version_numbers.bat
@@ -0,0 +1,7 @@
+set target_file=config.h
+set /p version_file_contents=<..\..\..\version.m4
+set ledger_version_nr=%version_file_contents:m4_define([VERSION_NUMBER], [=%
+set ledger_version_nr=%ledger_version_nr:])=%
+echo #pragma once> %target_file%
+echo #define PACKAGE_VERSION "%ledger_version_nr%">> %target_file%
+echo #define VERSION "%ledger_version_nr%">> %target_file%