From 99f170adc368fcbf3f1f2226660543aa7974f054 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 31 Dec 2013 17:15:44 -0600 Subject: [PATCH] Fix version for make dist on master - Re-remove VERSION file and all traces of it - Pass a decent version indicator to AC_INIT (using git describe) When we tag 1.4 this will produce 1.4 as the version string when building on the HEAD of that tag. --- VERSION | 1 - configure.ac | 4 +++- setup.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 VERSION diff --git a/VERSION b/VERSION deleted file mode 100644 index 7e32cd56..00000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.3 diff --git a/configure.ac b/configure.ac index 2f777af4..7e1e08fc 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,6 @@ -AC_INIT([jq], [1.3], [mu@netsoc.tcd.ie], +m4_define([jq_version], m4_esyscmd_s([git describe --always --dirty --match 'jq-*'|sed 's/^jq-//'])) + +AC_INIT([jq], [jq_version], [mu@netsoc.tcd.ie], [jq], [http://stedolan.github.com/jq/]) dnl Created autoconf implementation thompson@dtosolutions, 26NOV12 diff --git a/setup.sh b/setup.sh index c63fc9cd..63dc899d 100755 --- a/setup.sh +++ b/setup.sh @@ -14,7 +14,7 @@ if [ "clean" == "$1" ]; then rm -f jv_utf8_tables.gen.h lexer.c lexer.h parser.c parser.h elif [ "superclean" == "$1" ]; then # if autoconf errors during distcheck, it leaves files that need chmod'ing - ver=$(tr -d '\n'