From 57ab3e45c31438bc78a362a2023a5795ccbc4b5c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Mon, 29 May 2017 14:30:33 +0200
Subject: [PATCH] Added VERSION file.

---
 .gitignore         | 3 +++
 VERSION.in         | 1 +
 configure.ac       | 1 +
 windows/dynare.nsi | 2 +-
 4 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 VERSION.in

diff --git a/.gitignore b/.gitignore
index 18a66b2dba..9fc713587a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -213,3 +213,6 @@ tests/julia/rbc/rbc*.jl
 
 # Octave variables saved when Octave crashes
 octave-workspace
+
+# VERSION generated file
+VERSION
\ No newline at end of file
diff --git a/VERSION.in b/VERSION.in
new file mode 100644
index 0000000000..7b4f3f3a02
--- /dev/null
+++ b/VERSION.in
@@ -0,0 +1 @@
+@PACKAGE_VERSION@
\ No newline at end of file
diff --git a/configure.ac b/configure.ac
index a648641509..4ddf926825 100755
--- a/configure.ac
+++ b/configure.ac
@@ -172,6 +172,7 @@ esac
 AX_PTHREAD
 
 AC_CONFIG_FILES([Makefile
+                 VERSION
                  preprocessor/macro/Makefile
                  preprocessor/Makefile
                  doc/Makefile
diff --git a/windows/dynare.nsi b/windows/dynare.nsi
index 51d31ef262..60b575149c 100644
--- a/windows/dynare.nsi
+++ b/windows/dynare.nsi
@@ -54,7 +54,7 @@ Section "Dynare core (preprocessor and M-files)"
  SectionIn RO
 !insertmacro DETERMINE_CONTEXT
  SetOutPath $INSTDIR
- File README.txt ..\NEWS mexopts-win32.bat mexopts-win64.bat ..\license.txt
+ File README.txt ..\NEWS mexopts-win32.bat mexopts-win64.bat ..\license.txt ..\VERSION
 
  SetOutPath $INSTDIR\matlab
  File /r ..\matlab\*.m
-- 
GitLab