Magellan Linux

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

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

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 7  test "$target" || exit 1 Line 7  test "$target" || exit 1
7  test "$loc" || loc=.  test "$loc" || loc=.
8  test -x "$loc/usage" || exit 1  test -x "$loc/usage" || exit 1
9  test "$SED" || SED=sed  test "$SED" || SED=sed
10    test "$DD" || DD=dd
11    
12  sz=`"$loc/usage" | wc -c` || exit 1  sz=`"$loc/usage" | wc -c` || exit 1
13    
# Line 20  echo 'static const char packed_usage[] A Line 21  echo 'static const char packed_usage[] A
21  ##  ##
22  ## "$loc/usage" | bzip2 -1 | od -v -x \  ## "$loc/usage" | bzip2 -1 | od -v -x \
23  ## | $SED -e 's/^[^ ]*//' \  ## | $SED -e 's/^[^ ]*//' \
24  ## | $SED -e 's/ //g' \  ## -e 's/ //g' \
25  ## | grep -v '^$' \  ## -e '/^$/d' \
26  ## | $SED -e 's/\(..\)\(..\)/0x\2,0x\1,/g'  ## -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
27    
28  "$loc/usage" | bzip2 -1 | od -v -t x1 \  "$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -t x1 \
29  | $SED -e 's/^[^ ]*//' \  | $SED -e 's/^[^ ]*//' \
30  | $SED -e 's/ //g' \   -e 's/ //g' \
31  | grep -v '^$' \   -e '/^$/d' \
32  | $SED -e 's/\(..\)/0x\1,/g'   -e 's/\(..\)/0x\1,/g'
33    
34  echo '};'  echo '};'
35  echo '#define SIZEOF_usage_messages' `expr 0 + $sz`  echo '#define SIZEOF_usage_messages' `expr 0 + $sz`

Legend:
Removed from v.983  
changed lines
  Added in v.984