[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In rcs 5.9.1 build-aux/extract-help is bash-specific
From: |
Thien-Thi Nguyen |
Subject: |
Re: In rcs 5.9.1 build-aux/extract-help is bash-specific |
Date: |
Sun, 20 Oct 2013 17:04:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
() Dagobert Michelsen <address@hidden>
() Sun, 20 Oct 2013 15:20:54 +0200
Indeed, taking out "set -e" also makes the script not bail out,
but now I get
ya_ci -- super.o ld: fatal: symbol referencing errors.
OK, so that was a bad idea. How about this:
build-aux/extract-help | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/build-aux/extract-help b/build-aux/extract-help
index 466980f..74ca1a3 100755
--- a/build-aux/extract-help
+++ b/build-aux/extract-help
@@ -87,9 +87,8 @@ echo 'static char const' $vprefix'help[] = ""'
echo ';'
# Pull in command support only if needed.
-if [ 0 = `grep -c 'CHECK_HV (".*")' "$in"` ] ; then
- echo '#include "b-yacmd.h"'
-fi
+grep 'CHECK_HV (".*")' "$in" 1>/dev/null 2>&1 \
+ || echo '#include "b-yacmd.h"'
exit 0
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
pgpF0cxtKRlnY.pgp
Description: PGP signature