6 test "$target" || exit 1
8 test -x "$loc/usage" || exit 1
12 # Some people were bitten by their system lacking a (proper) od
13 od -v -t x1 </dev/null >/dev/null
15 echo 'od tool is not installed or cannot accept "-v -t x1" options'
21 echo '#define UNPACKED_USAGE "" \'
22 "$loc/usage" | od -v -t x1 \
23 | $SED -e 's/^[^ ]*//' \
26 -e 's/\(..\)/\\x\1/g' \
31 echo '#define PACKED_USAGE \'
32 ## Breaks on big-endian systems!
33 ## # Extra effort to avoid using "od -t x1": -t is not available
34 ## # in non-CONFIG_DESKTOPed busybox od
36 ## "$loc/usage" | bzip2 -1 | od -v -x \
37 ## | $SED -e 's/^[^ ]*//' \
40 ## -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
42 "$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -t x1 \
43 | $SED -e 's/^[^ ]*//' \
46 -e 's/\(..\)/0x\1,/g' \
50 mv -- "$target.$$" "$target"