od -t

Bernhard Fischer rep.dot.nop at gmail.com
Fri Feb 8 15:23:27 UTC 2008


Denis,

Can you have a look if the hunk below would work with our small od(1)
implementation?
TIA,

On Sun, Feb 03, 2008 at 07:26:28PM +0100, Bernhard Fischer wrote:
>On Sun, Feb 03, 2008 at 04:37:10PM +0100, Thomas Lundquist wrote:
>>Hi.
>>
>>I'm trying to build busybox within buildroot and then busybox provides
>>od but applets/usage_compressed uses od -t which busybox does not have.
>>
>>Turning off CONFIG_FEATURE_COMPRESS_USAGE does not help either.
>>
>>Anyone with plan? I guess we should/could either try to add -t or fix
>
>We should fix the usage_compressed scripts, yes.
>
>Perhaps you want to experiment with just using "-x", something like
>echo 'static const char packed_usage[] ALIGN1 = ' | bzip2 -1 \
>| ./busybox od -v -x \
>| sed -e 's/^[^ ]*//' \
>    -e 's/ 	*\(..\)\(..\)/\\x\2\\x\1/g' \
>    -e 's/\\x[ 	][ 	]*\\x[ 	]*$//' \
>    -e 's/^\(.*\)$/"\1"/'
>where the brackets contain a space and ^vi (i.e. a tab).
>
>Perhaps the above even works, i admit that i didn't try it out.



More information about the busybox mailing list