]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autotest/general.m4: Use
authorAkim Demaille <akim@epita.fr>
Wed, 29 Aug 2001 09:04:31 +0000 (09:04 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 29 Aug 2001 09:04:31 +0000 (09:04 +0000)
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.

ChangeLog
doc/autoconf.texi
lib/autotest/general.m4
tests/.cvsignore

index 5928d4f56f104abbfc778154c008144ea9771d95..7f293366fbf48c04882dc99efdddefedd1407533 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2001-08-29  Akim Demaille  <akim@epita.fr>
+
+       * 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  <akim@epita.fr>
 
        * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
index 33e5380e4f9b735b0a109d069db7f17c85246019..aaf3fb02fbc2cbc71a9f6288bce109b241a745f9 100644 (file)
@@ -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}
index 9fd79b8791b0eacdf183d86780f03d36e133d5de..bc9fb709c856f0207867b0eca3713433972ed102 100644 (file)
@@ -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
index 0c27bef06285a3b488de78c7e9d93646c95ea187..a39f466e40ebc18d8bb46f2126763f56050780e9 100644 (file)
@@ -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