mirror of
https://github.com/sheumann/hush.git
synced 2024-09-10 03:54:26 +00:00
12 lines
272 B
Bash
12 lines
272 B
Bash
#!/bin/sh
|
|
|
|
loc="$1"
|
|
|
|
test "$loc" || loc=.
|
|
|
|
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"/'
|
|
echo ';'
|
|
echo '#define SIZEOF_usage_messages' $((0 + `"$loc"/usage | wc -c `))
|