svn commit: trunk/busybox/scripts
aldot at busybox.net
aldot at busybox.net
Fri May 26 13:28:40 UTC 2006
Author: aldot
Date: 2006-05-26 06:28:39 -0700 (Fri, 26 May 2006)
New Revision: 15186
Log:
- use the SED given by the user
- use the portable `` instead of $(). There is no bbsh, so this is needed.
Modified:
trunk/busybox/scripts/usage_compressed
Changeset:
Modified: trunk/busybox/scripts/usage_compressed
===================================================================
--- trunk/busybox/scripts/usage_compressed 2006-05-26 13:22:57 UTC (rev 15185)
+++ trunk/busybox/scripts/usage_compressed 2006-05-26 13:28:39 UTC (rev 15186)
@@ -7,6 +7,7 @@
echo 'static const char packed_usage[] = '
"$loc"/usage | bzip2 -9 | od -v -t x1 \
-| sed -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/'
+| $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' || exit 1
echo ';'
-echo '#define SIZEOF_usage_messages' $((0 + `"$loc"/usage | wc -c `))
+sz=`"$loc"/usage | wc -c` || exit 1
+echo '#define SIZEOF_usage_messages' `expr 0 + $sz`
More information about the busybox-cvs
mailing list