Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/applets/usage_compressed

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 815 by niro, Sat Sep 1 22:45:15 2007 UTC revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC
# Line 12  sz=`"$loc/usage" | wc -c` || exit 1 Line 12  sz=`"$loc/usage" | wc -c` || exit 1
12    
13  exec >"$target"  exec >"$target"
14    
15  echo 'static const char packed_usage[] = '  echo 'static const char packed_usage[] ALIGN1 = {'
16    
17    ## Breaks on big-endian systems!
18    ## # Extra effort to avoid using "od -t x1": -t is not available
19    ## # in non-CONFIG_DESKTOPed busybox od
20    ##
21    ## "$loc/usage" | bzip2 -1 | od -v -x \
22    ## | $SED -e 's/^[^ ]*//' \
23    ## | $SED -e 's/ //g' \
24    ## | grep -v '^$' \
25    ## | $SED -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
26    
27  "$loc/usage" | bzip2 -1 | od -v -t x1 \  "$loc/usage" | bzip2 -1 | od -v -t x1 \
28  | $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/'  | $SED -e 's/^[^ ]*//' \
29  echo ';'  | $SED -e 's/ //g' \
30    | grep -v '^$' \
31    | $SED -e 's/\(..\)/0x\1,/g'
32    
33    echo '};'
34  echo '#define SIZEOF_usage_messages' `expr 0 + $sz`  echo '#define SIZEOF_usage_messages' `expr 0 + $sz`

Legend:
Removed from v.815  
changed lines
  Added in v.816