Contents of /trunk/mkinitrd-magellan/busybox/applets/usage_compressed
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File size: 400 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File size: 400 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | #!/bin/sh |
2 | |
3 | target="$1" |
4 | loc="$2" |
5 | |
6 | test "$target" || exit 1 |
7 | test "$loc" || loc=. |
8 | test -x "$loc/usage" || exit 1 |
9 | test "$SED" || SED=sed |
10 | |
11 | sz=`"$loc/usage" | wc -c` || exit 1 |
12 | |
13 | exec >"$target" |
14 | |
15 | echo 'static const char packed_usage[] = ' |
16 | "$loc/usage" | bzip2 -1 | od -v -t x1 \ |
17 | | $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' |
18 | echo ';' |
19 | echo '#define SIZEOF_usage_messages' `expr 0 + $sz` |
Properties
Name | Value |
---|---|
svn:executable | * |