From 1475c12adcab6ee17f5f6dbdaeb9a7ef67317aca Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 23 Aug 2016 11:33:51 -0400 Subject: [PATCH] Add generated VERSION This is useful for shell scripts and the like (e.g. Autoconf macros). * .gitignore (/VERSION): Added * VERSION.in: Added * configure.ac: Process VERSION --- .gitignore | 1 + VERSION.in | 1 + configure.ac | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 VERSION.in diff --git a/.gitignore b/.gitignore index a44f804f..ed688626 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /test/**/xspec/ /src/**/*.texi /src/conf.xsl +/VERSION *.apply *.info diff --git a/VERSION.in b/VERSION.in new file mode 100644 index 00000000..27323dad --- /dev/null +++ b/VERSION.in @@ -0,0 +1 @@ +@VERSION@ \ No newline at end of file diff --git a/configure.ac b/configure.ac index cdf8924f..af0c12fe 100644 --- a/configure.ac +++ b/configure.ac @@ -45,7 +45,7 @@ AS_IF(test ! -d "$HOXSL", AC_MSG_ERROR([hoxsl path '$HOXSL' does not exist!])) AC_MSG_RESULT(found) -AC_CONFIG_FILES([Makefile doc/Makefile src/init.xsl]) +AC_CONFIG_FILES([Makefile doc/Makefile src/init.xsl VERSION]) AC_OUTPUT