6 test "$target" || exit 1
10 # Some people were bitten by their system lacking a (proper) od
11 od -v -b </dev/null >/dev/null
13 echo 'od tool is not installed or cannot accept "-v -b" options'
22 scripts=$(cd $loc; ls * 2>/dev/null)
25 n=$(echo $scripts | wc -w)
29 printf '#ifdef DEFINE_script_names\n'
30 printf 'const char script_names[] ALIGN1 = '
37 printf 'extern const char script_names[] ALIGN1;\n'
40 printf "#define NUM_SCRIPTS $n\n\n"
44 printf '#define UNPACKED_SCRIPTS_LENGTH '
51 printf '#define PACKED_SCRIPTS \\\n'
56 done | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -b \
58 | $SED -e 's/^[^ ]*//' \
61 -e 's/\(...\)/0\1,/g' \
66 mv -- "$target.$$" "$target"