1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00
Commit Graph

87 Commits

Author SHA1 Message Date
88e1f59ec1 Allow globbing on Windows
The mingw-w64 runtime expands wildcards, which causes a discrepancy
between `main`'s `argv` (multiple file names) and Windows' `wargv` (a
single wildcard).  Use `wmain` to retrieve the wide character args.
2019-02-17 23:58:23 -06:00
012af2186b Fix build on BSD make
Replace uses of the nonstandard $^ variable by explicitly specifying the
source filenames. This is the only obvious thing preventing the build
from running correctly on non-GNU make.
2019-01-30 09:48:04 -06:00
0bc77083ba Out-of-srcdir builds: AM_CPPFLAGS=-I${srcdir}/src 2018-12-26 12:53:48 -06:00
6893284ee5 Makefile.am: add no-undefined for win32
"Undefined symbols are not allowed in x86_64-w64-mingw32 shared libraries"

This was also applied in the official MINGW-packages repo:
Alexpux/MINGW-packages@b5566c58a
2018-12-26 02:45:54 +00:00
712330940b Ensure that ${builddir}/src exists 2018-12-18 14:15:04 -06:00
89809a2d0f Fix make dist 2017-03-01 23:01:08 -06:00
9801de6979 Windows: Also use -lshlwapi for jq(1) 2017-02-25 14:49:20 -06:00
02bad4b298 Add local oniguruma submodule
Configure should still allow use of prebuilt onigurumas (whether
system-installed or in a special prefix).  If these are not found, and
configure was not called with `--without-oniguruma`, then use the vendored
oniguruma module.  If configure was called with `--without-oniguruma`, then we
do not build regex functionality into jq.
2017-02-18 21:34:26 -05:00
e0b784ac6d Add @base64d for decoding base64 #47 2017-02-12 16:03:59 -05:00
e84d17196c Handle cut-off UTF-8 sequences when reading files
Read additional bytes from the file to complete the UTF-8 sequence so the bytes
in it don't get converted to U+FFFD replacement characters.
2017-01-27 21:04:26 -05:00
d228490162 Add --enable-ubsan (undefined behavior sanitizer) 2016-01-17 13:06:27 -06:00
062f86a625 Enable more tests on Windows; move sort_by tests
Use %%FAIL IGNORE MSG for error messages that differ on Windows, and
move the sort_by/group_by tests that fail qhen qsort() is not stable.

Now only tests/sorttest and tests/shtest are disabled on Windows.
2016-01-17 12:45:01 -06:00
ec07936888 Fix Windows build (fix #911) 2016-01-16 16:51:01 -06:00
8e4724e16c fixup non-maintainer build 2016-01-15 16:06:18 -06:00
3afdbb7b7d Always build src/builtin.inc (fix #1069) 2016-01-15 11:59:14 -06:00
8f115e9eed Add address sanitizer (ASAN) support (fix #1002) 2015-10-27 20:06:21 -05:00
aa279ae7ac Fix builtin.o dependency (#992) 2015-10-22 22:33:47 -05:00
143e8dc5e4 Move jq-coded builtins to non-C file (fix #424) 2015-10-22 19:26:00 -07:00
f57743eb37 Remove jq.1.default and related content 2015-08-23 23:08:11 -05:00
0c93eb3379 Move source files to src/ 2015-08-23 20:36:11 -07:00
371e74a25f Remove obsolete comment in Makefile.am 2015-08-22 16:27:06 -07:00
9ec27fe362 Sort source file lists in Makefile.am 2015-08-22 16:20:21 -07:00
75662a4b05 Standardize indentation in Makefile.am
This was being done 5 different way in 5 places:

- indent 3 spaces, then tabs to column 73
- indent 2 spaces, then tabs to column 73
- indent 2 spaces, then a single tab
- indent with spaces up to equal sign, then tabs to column 73
- indent 1 tab, then tabs to column 73

I standardized on 8 spaces, then spaces to column 73. The 8
spaces lines up with common browsers' indentation of the
rest of the makefile, which is indented by single tabs. The
spaces to column 73 make sure the trailing backslashes line
up regardless of the tabstop setting.
2015-08-22 15:31:50 -07:00
0f419563ea Remove all trailing whitespace 2015-08-13 22:39:23 -07:00
6b55baa00f Add missing files (fix #875) 2015-07-28 00:09:46 -05:00
7f251344b7 Fix make dist (fix #870) 2015-07-26 23:26:30 -05:00
e6371712ff flag to enable gcov and coveralls 2015-06-27 11:25:01 -07:00
d7e35101c5 add configure option to run tests without valgrind 2015-06-27 11:24:53 -07:00
1146b8b84a separate jq, oniguruma, sh, and man tests 2015-06-18 23:55:43 -05:00
c95b4a8ab4 Add Missing Makefile Dependency
main.c requires version.h, but there is no logic marking this dependency
in the Makefile. This commit adds the dependency to the Makefile
template.
2015-06-09 19:01:20 -05:00
8af52aaf52 Add ./configure --enable-all-static instead 2015-05-25 21:19:56 -05:00
d66e434fb4 Always add -all-static when --enable-static 2015-05-25 14:14:53 -05:00
cf1306f469 Add -all-static when --enable-static 2015-05-18 12:07:29 -05:00
821d6404b6 Add error injection library 2015-05-11 21:36:46 -05:00
0df387f6b5 Automake: jq depends on version.h (fix #721) 2015-03-08 16:52:08 -05:00
8cef5a37ab Add --disable-maintainer-mode; make bison optional
Also flex is now optional.

The outputs of flex and bison are now committed.  By default they get
built, but users who want to build from git can now

    ./configure --disable-maintainer-mode

to turn off the dependency on bison and flex.

Maintainers must, of course, commit the bison and/or flex outputs when
they make changes to parser.y and/or lexer.l, respectively.
2015-02-15 18:34:44 -06:00
22f55aa585 Include missing EXTRA_DIST items; fix #661 2015-01-01 15:14:49 -06:00
38b939688a Added library system with -l, -L, and JQ_LIBRARY_PATH
Created util.[ch] to hold common utilities.
2014-07-22 22:51:11 -05:00
bb83813f51 Automatically update jq.1.prebuilt 2014-06-13 17:22:17 -05:00
61cc0d4fb1 Make a better jq.1 when Ruby deps missing 2014-06-12 17:30:09 -05:00
e73951f3d1 Add lib.h to dist file list 2014-06-09 18:58:46 -05:00
dc8528af0f fix rpm Makefile target and prerequisites
depend on dist and the specfile, plus use automake's variables
2013-12-27 12:49:15 -06:00
dae2422fd1 Merge branch 'libjq'
Conflicts:
	Makefile.am
	configure.ac
2013-09-14 19:30:39 +01:00
111aea3f0a Fix Makefile after refactoring of stacks in 05d90517b02 2013-08-19 13:40:08 +01:00
8630fb02bb Use libtool's built-in symbol exporting rather than a mapfile. 2013-06-23 12:10:58 +01:00
a44f739356 Move libtool m4 junk to config/ and delete some autogenerated files. 2013-06-23 12:01:58 +01:00
f44ecf3872 Remove Autoconf-generated config.h. 2013-06-23 12:01:58 +01:00
1c9e03f800 Merge branch 'header-cleanup' into libjq
Conflicts:
	Makefile.am
2013-06-22 23:27:16 +01:00
5d9ec83805 Build libjq only once, and link it statically to ./jq
This means ./jq is a real binary rather than a libtool turd.
2013-06-22 20:53:28 +01:00
3a295c659b Fix distcheck.
Update list of files to be distributed.
2013-06-22 20:53:03 +01:00