]> granicus.if.org Git - jq/commitdiff
Use the version number from configure.ac in the website.
authorStephen Dolan <mu@netsoc.tcd.ie>
Wed, 8 May 2013 18:57:29 +0000 (19:57 +0100)
committerStephen Dolan <mu@netsoc.tcd.ie>
Wed, 8 May 2013 18:57:29 +0000 (19:57 +0100)
Makefile.am
Makefile.in
configure.ac
docs/site.yml

index 52e73379d5a334c11f053a2dc55ae9f7f975fcae..58250496210fad191b9103f0f29c2562a719523b 100644 (file)
@@ -50,6 +50,10 @@ TEST_LOG_COMPILER = tests/run
 
 ### Packaging
 
+docs/site.yml: configure.ac
+       sed 's/^jq_version: .*/jq_version: $(VERSION)/' $@ > $@.new
+       mv $@.new $@
+
 # setup is only used by distribution developers, not package developers.
 # Still, as a matter of allowing patching, its not a bad idea to distribute 
 # the developer setup script in the tarball.
index 5a8e9a9c2f1d4a468c37859aca35bfbb9b3d1e41..692cca208772108897c3c71228ac5f4c2924f801 100644 (file)
@@ -359,7 +359,7 @@ AM_CFLAGS = -Wextra -Wall -Wno-missing-field-initializers   \
 
 # While there is some autoconf macro support for lex/flex, it doesn't support
 # header file creation so we'll use good old make
-BUILT_SOURCES = lexer.h lexer.c
+BUILT_SOURCES = lexer.h lexer.c parser.h parser.c
 
 # Tell YACC (bison) autoconf macros that you want a header file created.
 # If the --warnings=all fails, you probably have an old version of bison
@@ -373,8 +373,6 @@ jq_SOURCES = ${JQ_SRC} main.c
 TESTS = tests/all.test
 TEST_LOG_COMPILER = tests/run
 
-### Packaging
-
 # setup is only used by distribution developers, not package developers.
 # Still, as a matter of allowing patching, its not a bad idea to distribute 
 # the developer setup script in the tarball.
@@ -1099,6 +1097,12 @@ lexer.h: lexer.c
 
 main.c: config.h
 
+### Packaging
+
+docs/site.yml: configure.ac
+       sed 's/^jq_version: .*/jq_version: $(VERSION)/' $@ > $@.new
+       mv $@.new $@
+
 jq.1 :
        cd ${abs_srcdir}/docs; rake manpage > ${abs_builddir}/$@
 
index c42425d981d44118e4b9ce40b46a5283004793a8..5bbc0b553e5eb3dafd7d20d7c7766b075ad8f204 100644 (file)
@@ -1,4 +1,4 @@
-AC_INIT([jq], m4_esyscmd([tr -d '\n' <VERSION]), [mu@netsoc.tcd.ie],
+AC_INIT([jq], [1.2], [mu@netsoc.tcd.ie],
              [jq], [http://stedolan.github.com/jq/])
 
 dnl Created autoconf implementation thompson@dtosolutions, 26NOV12
index 863d578df45915a3d1ec518827af2f6e5f3685bc..ae66854fe18ad7f1feb4c0fcba5855686a1b766f 100644 (file)
@@ -1,7 +1,10 @@
 # The key value pairs found below are available within the templates.
 
 
+# This line is modified by the Makefile. To change the version number,
+# edit the Autoconf version number at the top of configure.ac
 jq_version: 1.2
+
 root: '/jq'
 footer: |
   
@@ -11,4 +14,4 @@ footer: |
 
   jq is licensed under the MIT license (code) and the
   [CC-BY-3.0](http://creativecommons.org/licenses/by/3.0/) license
-  (docs).
\ No newline at end of file
+  (docs).