+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
@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}
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}
--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=:;;
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
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=
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