projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Patch from Dennis Vlasenko to add the option to compress help text.
[oweals/busybox.git]
/
scripts
/
usage_compressed
1
#!/bin/sh
2
3
loc="$1"
4
5
test "$loc" || loc=.
6
7
echo 'static const char packed_usage[] = '
8
"$loc"/usage | bzip2 -9 | od -v -t x1 \
9
| sed -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/'
10
echo ';'
11
echo '#define SIZEOF_usage_messages' $((0 + `"$loc"/usage | wc -c `))