6 test "$target" || exit 1
8 test -x "$loc/usage" || exit 1
12 true | od -v -t x1 >/dev/null
14 echo 'od tool is not installed or cannot accept "-v -t x1" options'
20 echo '#define UNPACKED_USAGE "" \'
21 "$loc/usage" | od -v -t x1 \
22 | $SED -e 's/^[^ ]*//' \
25 -e 's/\(..\)/\\x\1/g' \
30 echo '#define PACKED_USAGE \'
31 ## Breaks on big-endian systems!
32 ## # Extra effort to avoid using "od -t x1": -t is not available
33 ## # in non-CONFIG_DESKTOPed busybox od
35 ## "$loc/usage" | bzip2 -1 | od -v -x \
36 ## | $SED -e 's/^[^ ]*//' \
39 ## -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
41 "$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -t x1 \
42 | $SED -e 's/^[^ ]*//' \
45 -e 's/\(..\)/0x\1,/g' \
49 mv -- "$target.$$" "$target"