6 Jul 2012 10:19
[PATCH] bootstrap: use a more consistent error reporting scheme.
Akim Demaille <akim <at> lrde.epita.fr>
2012-07-06 08:19:14 GMT
2012-07-06 08:19:14 GMT
Independently of the other thread we're having about set -e,
I had refactored bootstrap a bit.
-8<---
* build-aux/bootstrap (stderr, die): New.
Use them.
---
build-aux/bootstrap | 94 ++++++++++++++++++++++++++---------------------------
1 file changed, 47 insertions(+), 47 deletions(-)
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index e984910..ad94ef4 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
<at> <at> -1,6 +1,6 <at> <at>
#! /bin/sh
# Print a version string.
-scriptversion=2012-07-03.20; # UTC
+scriptversion=2012-07-06.08; # UTC
# Bootstrap this package from checked-out sources.
<at> <at> -77,6 +77,16 <at> <at> Running without arguments will suffice in most cases.
EOF
}
+stderr()
+{
+ for i
+ do
(Continue reading)
> How about "might be nice, in the rare event someone sees this message"?
Fair enough :) It should have read "I have used this
often in several scripts I maintain".
> No change. The existing code uses echo and prints it all on one line.
> I think it's fine to leave it that way.
> It's only a diagnostic, after all.
Installed!
RSS Feed