- use the SED given by the user
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 26 May 2006 13:28:39 +0000 (13:28 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 26 May 2006 13:28:39 +0000 (13:28 -0000)
- use the portable `` instead of $(). There is no bbsh, so this is needed.

scripts/usage_compressed

index ce672db3bbc34a9da60baf7ed2bd9746e16c442c..59e93e66911f7a5f89b347f517e6966a8699ffe2 100644 (file)
@@ -7,6 +7,7 @@ test -x "$loc/usage" || exit 1
 
 echo 'static const char packed_usage[] = '
 "$loc"/usage | bzip2 -9 | od -v -t x1 \
-| sed -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/'
+| $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' || exit 1
 echo ';'
-echo '#define SIZEOF_usage_messages' $((0 + `"$loc"/usage | wc -c `))
+sz=`"$loc"/usage | wc -c` || exit 1
+echo '#define SIZEOF_usage_messages' `expr 0 + $sz`