diff options
Diffstat (limited to 'scripts/usage_compressed')
| -rwxr-xr-x | scripts/usage_compressed | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/usage_compressed b/scripts/usage_compressed deleted file mode 100755 index ab164aa12..000000000 --- a/scripts/usage_compressed +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | target="$1" | ||
| 4 | loc="$2" | ||
| 5 | |||
| 6 | test "$target" || exit 1 | ||
| 7 | test "$loc" || loc=. | ||
| 8 | test -x "$loc/usage" || exit 1 | ||
| 9 | test "$SED" || SED=sed | ||
| 10 | |||
| 11 | sz=`"$loc/usage" | wc -c` || exit 1 | ||
| 12 | |||
| 13 | exec >"$target" | ||
| 14 | |||
| 15 | echo 'static const char packed_usage[] = ' | ||
| 16 | "$loc/usage" | bzip2 -1 | od -v -t x1 \ | ||
| 17 | | $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' | ||
| 18 | echo ';' | ||
| 19 | echo '#define SIZEOF_usage_messages' `expr 0 + $sz` | ||
