7 |
test "$loc" || loc=. |
test "$loc" || loc=. |
8 |
test -x "$loc/usage" || exit 1 |
test -x "$loc/usage" || exit 1 |
9 |
test "$SED" || SED=sed |
test "$SED" || SED=sed |
10 |
|
test "$DD" || DD=dd |
11 |
|
|
12 |
sz=`"$loc/usage" | wc -c` || exit 1 |
sz=`"$loc/usage" | wc -c` || exit 1 |
13 |
|
|
21 |
## |
## |
22 |
## "$loc/usage" | bzip2 -1 | od -v -x \ |
## "$loc/usage" | bzip2 -1 | od -v -x \ |
23 |
## | $SED -e 's/^[^ ]*//' \ |
## | $SED -e 's/^[^ ]*//' \ |
24 |
## | $SED -e 's/ //g' \ |
## -e 's/ //g' \ |
25 |
## | grep -v '^$' \ |
## -e '/^$/d' \ |
26 |
## | $SED -e 's/\(..\)\(..\)/0x\2,0x\1,/g' |
## -e 's/\(..\)\(..\)/0x\2,0x\1,/g' |
27 |
|
|
28 |
"$loc/usage" | bzip2 -1 | od -v -t x1 \ |
"$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -t x1 \ |
29 |
| $SED -e 's/^[^ ]*//' \ |
| $SED -e 's/^[^ ]*//' \ |
30 |
| $SED -e 's/ //g' \ |
-e 's/ //g' \ |
31 |
| grep -v '^$' \ |
-e '/^$/d' \ |
32 |
| $SED -e 's/\(..\)/0x\1,/g' |
-e 's/\(..\)/0x\1,/g' |
33 |
|
|
34 |
echo '};' |
echo '};' |
35 |
echo '#define SIZEOF_usage_messages' `expr 0 + $sz` |
echo '#define SIZEOF_usage_messages' `expr 0 + $sz` |