Skip to content
Myr

Revert "Move closer to the standard autotools idiom. (#3187)" (#3255)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This partially reverts commit d8463c25491b6150d748155ac530a3205d072e37. Revert reason: version string should be updated more often.

authored by itchyny · committed by GitHub · parent aea8efa · Browse files · 4 files+27 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+27 added−11 removed

  • other:+27 added−11 removed

4 files+27 added−11 removed

modified:src/main.c+2 added
31 unmodified lines
3233#include "jv.h"34#include "jq.h"35#include "util.h"36#include "src/version.h"37#include "src/config_opts.inc"3839int jq_testsuite(jv lib_dirs, int verbose, int argc, char* argv[]);4041/*
666 unmodified lines
modified:.gitignore+3 added-2 removed
16 unmodified lines
17jq.11819# Generated source20src/builtin.inc21src/config.h.in22src/config.h21src/config_opts.inc22*.pc2324# Autotools junk25.libs
13 unmodified lines
39jq-*.zip40configure41aclocal.m442Makefile.in43version.h44.remake-version-h45config.cache46*.rpm47m4/libtool.m448m4/ltoptions.m4
12 unmodified lines
modified:configure.ac-5 removed
234 unmodified lines
235 AC_MSG_ERROR(unknown endianness),236 AC_MSG_ERROR(universal endianness not supported)237)238239AC_DEFINE_UNQUOTED([JQ_CONFIG], ["$ac_cs_config"], [The options jq was configured with.])240AH_BOTTOM([#define JQ_VERSION PACKAGE_VERSION])241239dnl Oniguruma240AC_ARG_WITH([oniguruma],241 [AS_HELP_STRING([--with-oniguruma=prefix],242 [try this for a non-standard install prefix of the oniguruma library])], ,
40 unmodified lines
283AM_CONDITIONAL([BUILD_ONIGURUMA], [test "x$build_oniguruma" = xyes])284AM_CONDITIONAL([WITH_ONIGURUMA], [test "x$with_oniguruma" != xno])285286AC_CONFIG_MACRO_DIRS([config/m4 m4])290AC_CONFIG_HEADERS([src/config.h])291CFLAGS="$CFLAGS --include src/config.h"287AC_CONFIG_FILES([Makefile libjq.pc])288AC_OUTPUT289
modified:Makefile.am+22 added-4 removed
32 unmodified lines
33# While there is some autoconf macro support for lex/flex, it doesn't support34# header file creation so we'll use good old make35if MAINTAINER_MODE36BUILT_SOURCES = src/lexer.h src/lexer.c src/parser.h src/parser.c \37 src/builtin.inc37 src/builtin.inc src/config_opts.inc src/version.h38src/lexer.c: src/lexer.l39 $(AM_V_LEX) flex -o src/lexer.c --header-file=src/lexer.h $<40src/lexer.h: src/lexer.c41else42BUILT_SOURCES = src/builtin.inc42BUILT_SOURCES = src/builtin.inc src/config_opts.inc src/version.h43.y.c:44 $(AM_V_YACC) echo "NOT building parser.c!"45.l.c:46 $(AM_V_LEX) echo "NOT building lexer.c!"
48 unmodified lines
95endif9697### Building the jq binary9899# Remake the version.h header file if, and only if, the git ID has changed100.PHONY: .FORCE101.FORCE:102generate_ver = ver="`{ $(srcdir)/scripts/version || echo '$(VERSION)' ; } | sed 's/.*/\x23define JQ_VERSION \"&\"/'`"103.remake-version-h: .FORCE104 @ $(generate_ver); test "x`cat src/version.h 2>/dev/null`" = "x$$ver" || touch .remake-version-h105src/version.h: .remake-version-h106 mkdir -p src107 $(AM_V_GEN) $(generate_ver); echo "$$ver" > $@108src/config_opts.inc:109 mkdir -p src110 $(AM_V_GEN) if test -x ./config.status; then \111 ./config.status --config; \112 else echo "(unknown)"; \113 fi | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' -e 's/^/#define JQ_CONFIG /' > $@114src/main.c: src/version.h src/config_opts.inc115116src/builtin.inc: $(srcdir)/src/builtin.jq117 mkdir -p src118 $(AM_V_GEN) od -v -A n -t o1 -- $< | \119 sed -e 's/$$/ /' \
2 unmodified lines
122 -e 's/ 0/ 0/g' \123 -e 's/ \([123456789]\)/ 0\1/g' > $@124src/builtin.o: src/builtin.inc125109CLEANFILES = src/builtin.inc126CLEANFILES = src/version.h .remake-version-h src/builtin.inc src/config_opts.inc127128bin_PROGRAMS = jq129jq_SOURCES = src/main.c130jq_LDADD = libjq.la -lm
82 unmodified lines
213 docs/validate_manual_schema.py docs/manual_schema.yml214215EXTRA_DIST = $(DOC_FILES) $(man_MANS) $(TESTS) $(TEST_LOG_COMPILER) \216 jq.1.prebuilt jq.spec src/lexer.c src/lexer.h src/parser.c \200 src/parser.h src/builtin.jq scripts/version libjq.pc \217 src/parser.h src/version.h src/builtin.jq scripts/version \218 libjq.pc \219 tests/modules/a.jq tests/modules/b/b.jq tests/modules/c/c.jq \220 tests/modules/c/d.jq tests/modules/data.json \221 tests/modules/home1/.jq tests/modules/home2/.jq/g.jq \222 tests/modules/lib/jq/e/e.jq tests/modules/lib/jq/f.jq \
30 unmodified lines