From 7fca7e3378715ab17b93984b90f6780bf44ea28e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 26 May 2006 13:28:39 +0000 Subject: - use the SED given by the user - use the portable `` instead of $(). There is no bbsh, so this is needed. --- scripts/usage_compressed | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/usage_compressed b/scripts/usage_compressed index ce672db..59e93e6 100644 --- a/scripts/usage_compressed +++ b/scripts/usage_compressed @@ -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` -- cgit v1.1