mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
- 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:
parent
e28d1d6fdc
commit
7fca7e3378
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user