mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-02-01 06:08:59 +01:00
* .x-sc_prohibit_empty_lines_at_EOF: Add list of exceptions to the no-blank-lines-at-EOF syntax check. * doc/regexprops.texi: Remove empty lines at the end of the file. * find/finddata.c: Likewise. * find/fstype.c: Likewise. * find/testsuite/excuses.txt: Likewise. * find/testsuite/find.gnu/access.exp: Likewise. * find/testsuite/find.gnu/exec-one-rtn-fail.exp: Likewise. * find/testsuite/find.gnu/posix-perminvalid.exp: Likewise. * find/testsuite/find.gnu/samefile-missing.exp: Likewise. * find/testsuite/find.gnu/samefile-p-brokenlink.exp: Likewise. * find/testsuite/find.gnu/sv-bug-17490.exp: Likewise. * find/testsuite/find.gnu/sv-bug-18222.exp: Likewise. * find/testsuite/find.posix/bracket-depth.exp: Likewise. * find/testsuite/find.posix/empty-parens.exp: Likewise. * find/testsuite/find.posix/files-not-expressions1.exp: Likewise. * find/testsuite/find.posix/files-not-expressions2.exp: Likewise. * find/testsuite/find.posix/files-not-expressions3.exp: Likewise. * find/testsuite/find.posix/group-empty.exp: Likewise. * find/testsuite/find.posix/user-empty.exp: Likewise. * find/testsuite/find.posix/user-missing.exp: Likewise. * lib/extendbuf.c: Likewise. * lib/fdleak.c: Likewise. * lib/fdleak.h: Likewise. * lib/findutils-version.h: Likewise. * lib/gnulib-version.h: Likewise. * lib/printquoted.c: Likewise. * lib/regextype.c: Likewise. * lib/safe-atoi.c: Likewise. * locate/testsuite/config/unix.exp: Likewise. * locate/testsuite/locate.gnu/exists1.exp: Likewise. * locate/testsuite/locate.gnu/exists2.exp: Likewise. * locate/testsuite/locate.gnu/exists3.exp: Likewise. * locate/testsuite/locate.gnu/ignore_case1.exp: Likewise. * locate/testsuite/locate.gnu/ignore_case2.exp: Likewise. * locate/testsuite/locate.gnu/ignore_case3.exp: Likewise. * locate/testsuite/locate.gnu/notexists1.exp: Likewise. * locate/testsuite/locate.gnu/notexists2.exp: Likewise. * locate/testsuite/locate.gnu/notexists3.exp: Likewise. * locate/testsuite/locate.gnu/sv-bug-14535.exp: Likewise. * m4/Makefile.am: Likewise. * m4/nullsort.m4: Likewise. * xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp: Likewise. * xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp: Likewise. Signed-off-by: James Youngman <jay@gnu.org>
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
AC_DEFUN([jy_SORTZ],
|
|
[AC_PATH_PROG([SORT], [sort], [sort])
|
|
AC_MSG_CHECKING([if $SORT supports the -z option])
|
|
if test "x$cross_compiling" = xyes
|
|
then
|
|
# We are cross-compiling, so cannot test the target's "sort".
|
|
ac_sort_has_z=false
|
|
else
|
|
# find out if the sort command has a working -z option.
|
|
if $SORT -z -c < "${srcdir:-.}/m4/order-good.bin" 2>/dev/null >/dev/null
|
|
then
|
|
# sort has a -z option, but we have not yet established that
|
|
# sort thinks there is more than one input line there. We have
|
|
# to make sort -c do its thing with the input lines in the wrong
|
|
# order to determine that (we can't do it in one shot because
|
|
# if sort returns nonzero we cant tell that it wasn't just
|
|
# complaining about this unknown -z option.
|
|
if $SORT -z -c < "${srcdir:-.}/m4/order-bad.bin" 2>/dev/null >/dev/null
|
|
then
|
|
# sort likes -z but it doesn't seem to make \0
|
|
# a delimiter.
|
|
ac_sort_has_z=false
|
|
else
|
|
ac_sort_has_z=true
|
|
fi
|
|
else
|
|
# Doesn't like the z option.
|
|
ac_sort_has_z=false
|
|
fi
|
|
fi
|
|
|
|
if test "x$cross_compiling" = xyes
|
|
then
|
|
AC_MSG_RESULT([assume no, since we are cross compiling])
|
|
AC_SUBST(SORT_SUPPORTS_Z,[false])
|
|
elif $ac_sort_has_z
|
|
then
|
|
AC_MSG_RESULT([yes])
|
|
AC_SUBST(SORT_SUPPORTS_Z,[true])
|
|
else
|
|
AC_MSG_RESULT([no])
|
|
AC_SUBST(SORT_SUPPORTS_Z,[false])
|
|
fi
|
|
])
|