lib/check-regexprops.sh portability fixes for FreeBSD.

* lib/check-regexprops.sh: Portability fixes for FreeBSD (mktemp
requires an argument, dialect differences in sed regexes).

Signed-off-by: James Youngman <jay@gnu.org>
This commit is contained in:
James Youngman 2009-08-16 16:15:25 +01:00
parent 44440f375c
commit 5a8d448792
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,15 @@
2009-08-16 James Youngman <jay@gnu.org>
* lib/check-regexprops.sh: Portability fixes for FreeBSD (mktemp
requires an argument, dialect differences in sed regexes).
Bugfixes to the handling of %Z in the Red Hat SELinux patch.
* find/pred.c (do_fprintf): If getfilecon fails, print the
relevant segment anyway, with the file context expanding to an
empty string.
* find/parser.c (make_segment): For %Z, set the cost to
NeedsAccessInfo.
2009-08-15 James Youngman <jay@gnu.org>
* import-gnulib.config (gnulib_version): Update to the current

View File

@ -12,10 +12,10 @@ esac
save_output="regexprops.texi.new"
rv=1
if output_file=`mktemp`
if output_file=`mktemp ${TMPDIR:-/tmp}/check-regexprops.XXXXXX`
then
${REGEXPROPS} "Regular Expressions" findutils |
sed -e 's/[ ]\+$//' >| "${output_file}"
sed -e 's/[ ][ ]*$//' >| "${output_file}"
if cmp "${existing}" "${output_file}" ; then
echo "${existing} is up to date."
rv=0