test "$SED" || SED=sed
test "$DD" || DD=dd
-exec >"$target"
+# Some people were bitten by their system lacking a (proper) od
+od -v -t x1 </dev/null >/dev/null
+if test $? != 0; then
+ echo 'od tool is not installed or cannot accept "-v -t x1" options'
+ exit 1
+fi
-echo '#define UNPACKED_USAGE \'
+exec >"$target.$$"
+
+echo '#define UNPACKED_USAGE "" \'
"$loc/usage" | od -v -t x1 \
| $SED -e 's/^[^ ]*//' \
-e 's/ //g' \
-e 's/\(..\)/0x\1,/g' \
-e 's/$/ \\/'
echo ''
+
+mv -- "$target.$$" "$target"