From: Akim Demaille Date: Wed, 29 Aug 2001 09:04:31 +0000 (+0000) Subject: * lib/autotest/general.m4: Use X-Git-Tag: AUTOCONF-2.52d~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=188b40e5f493fc3f22e281430a3cc5f6e72ffcfe;p=thirdparty%2Fautoconf.git * lib/autotest/general.m4: Use foo=`(command) 2>/dev/null` not foo=`command` 2>/dev/null (at-devnull): Rename as... (AT-devnull): this. (--clean): Remove AT-* files too. * doc/autoconf.texi (Limitations of Usual Tools): Document `date'. Reported by Nicolas Joly. --- diff --git a/ChangeLog b/ChangeLog index 5928d4f56..7f293366f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2001-08-29 Akim Demaille + + * lib/autotest/general.m4: Use + foo=`(command) 2>/dev/null` + not + foo=`command` 2>/dev/null + (at-devnull): Rename as... + (AT-devnull): this. + (--clean): Remove AT-* files too. + * doc/autoconf.texi (Limitations of Usual Tools): Document `date'. + Reported by Nicolas Joly. + 2001-08-28 Akim Demaille * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 33e5380e4..aaf3fb02f 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -8689,6 +8689,21 @@ newer systems, @code{rename}). @c without -r??? +@item @command{date} +@c ----------------- +@prindex @command{date} +Some versions of @command{date} do not recognize special % directives, +and unfortunately, instead of complaining, they just pass them through, +and exit with success: + +@example +$ uname -a +OSF1 medusa.sis.pasteur.fr V5.1 732 alpha +$ date "+%s" +%s +@end example + + @item @command{diff} @c ----------------- @prindex @command{diff} @@ -8697,6 +8712,7 @@ Option @option{-u} is nonportable. Some implementations, such as Tru64's, fail when comparing to @file{/dev/null}. Use an empty file instead. + @item @command{dirname} @c -------------------- @prindex @command{dirname} diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 9fd79b879..bc9fb709c 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -126,7 +126,7 @@ while test $[@%:@] -gt 0; do --help | -h) at_help=: ;; --version) echo "$as_me ($at_package) $at_version"; exit 0 ;; --clean | -c ) - rm -rf $at_data_files debug-*.sh $as_me.log + rm -rf $at_data_files debug-*.sh $as_me.log AT-* exit 0;; -d) at_debug=:;; @@ -220,7 +220,7 @@ test -z "$at_tests" && at_tests=$at_tests_all if diff /dev/null /dev/null >/dev/null 2>&1; then at_devnull=/dev/null else - at_devnull=at-devnull + at_devnull=AT-devnull cp /dev/null $at_devnull fi @@ -347,7 +347,7 @@ else fi at_start_date=`date` -at_start_time=`date +%s` 2>/dev/null +at_start_time=`(date +%s) 2>/dev/null` echo "$as_me: starting at: $at_start_date" >&6 at_fail_list= at_skip_list= @@ -403,13 +403,13 @@ _ATEOF done at_stop_date=`date` -at_stop_time=`date +%s` 2>/dev/null +at_stop_time=`(date +%s) 2>/dev/null` echo "$as_me: ending at: $at_stop_date" >&6 -at_duration_s=`expr $at_stop_time - $at_start_time` 2>/dev/null -at_duration_m=`expr $at_duration_s / 60` 2>/dev/null -at_duration_h=`expr $at_duration_m / 60` 2>/dev/null -at_duration_s=`expr $at_duration_s % 60` 2>/dev/null -at_duration_m=`expr $at_duration_m % 60` 2>/dev/null +at_duration_s=`(expr $at_stop_time - $at_start_time) 2>/dev/null` +at_duration_m=`(expr $at_duration_s / 60) 2>/dev/null` +at_duration_h=`(expr $at_duration_m / 60) 2>/dev/null` +at_duration_s=`(expr $at_duration_s % 60) 2>/dev/null` +at_duration_m=`(expr $at_duration_m % 60) 2>/dev/null` at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s" if test "$at_duration" != "h m s"; then echo "$as_me: test suite duration: $at_duration" >&6 diff --git a/tests/.cvsignore b/tests/.cvsignore index 0c27bef06..a39f466e4 100644 --- a/tests/.cvsignore +++ b/tests/.cvsignore @@ -1,5 +1,5 @@ Makefile -at-* atlocal atconfig experr expout stderr stdout +AT-* at-* atlocal atconfig experr expout stderr stdout config.h config.hin config.log config.status