bootstrap: --help to stdout.
authorAkim Demaille <demaille@gostai.com>
Wed, 19 Aug 2009 13:40:08 +0000 (15:40 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 21 Aug 2009 14:35:06 +0000 (16:35 +0200)
* bootstrap (usage): Don't send --help to stderr.
Use a here doc instead of a long string.

ChangeLog
build-aux/bootstrap

index 410e38c..841212e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-19  Akim Demaille  <demaille@gostai.com>
+
+       bootstrap: --help to stdout.
+       * bootstrap (usage): Don't send --help to stderr.
+       Use a here doc instead of a long string.
+
 2009-08-21  Eric Blake  <ebb9@byu.net>
 
        test-popen-safer: split from test-popen
index 417d7ea..499e97f 100755 (executable)
@@ -34,7 +34,7 @@ bt_regex=`echo "$bt"| sed 's/\./[.]/g'`
 bt2=${bt}2
 
 usage() {
-  echo >&2 "\
+  cat <<EOF
 Usage: $0 [OPTION]...
 Bootstrap this package from the checked-out sources.
 
@@ -56,7 +56,7 @@ For build prerequisites, environment variables like \$AUTOCONF and \$AMTAR
 are honored.
 
 Running without arguments will suffice in most cases.
-"
+EOF
 }
 
 # Configuration.