- use the SED given by the user

- use the portable `` instead of $(). There is no bbsh, so this is needed.
This commit is contained in:
Bernhard Reutner-Fischer 2006-05-26 13:28:39 +00:00
parent e28d1d6fdc
commit 7fca7e3378

View 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`