diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 13:28:39 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 13:28:39 +0000 |
commit | 7fca7e3378715ab17b93984b90f6780bf44ea28e (patch) | |
tree | d8c72904e94b83f4fd79ae4a6ae9f5a1750c2da9 | |
parent | e28d1d6fdc27aa16c2c3a5bbf06cba36798bff5a (diff) | |
download | busybox-w32-7fca7e3378715ab17b93984b90f6780bf44ea28e.tar.gz busybox-w32-7fca7e3378715ab17b93984b90f6780bf44ea28e.tar.bz2 busybox-w32-7fca7e3378715ab17b93984b90f6780bf44ea28e.zip |
- use the SED given by the user
- use the portable `` instead of $(). There is no bbsh, so this is needed.
-rw-r--r-- | scripts/usage_compressed | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/usage_compressed b/scripts/usage_compressed index ce672db3b..59e93e669 100644 --- a/scripts/usage_compressed +++ b/scripts/usage_compressed | |||
@@ -7,6 +7,7 @@ test -x "$loc/usage" || exit 1 | |||
7 | 7 | ||
8 | echo 'static const char packed_usage[] = ' | 8 | echo 'static const char packed_usage[] = ' |
9 | "$loc"/usage | bzip2 -9 | od -v -t x1 \ | 9 | "$loc"/usage | bzip2 -9 | od -v -t x1 \ |
10 | | sed -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' | 10 | | $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' || exit 1 |
11 | echo ';' | 11 | echo ';' |
12 | echo '#define SIZEOF_usage_messages' $((0 + `"$loc"/usage | wc -c `)) | 12 | sz=`"$loc"/usage | wc -c` || exit 1 |
13 | echo '#define SIZEOF_usage_messages' `expr 0 + $sz` | ||