source: MondoRescue/branches/stable/mindi-busybox/scripts/usage_compressed @ 821

Last change on this file since 821 was 821, checked in by Bruno Cornec, 14 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 332 bytes
Line 
1#!/bin/sh
2
3loc="$1"
4
5test "$loc" || loc=.
6test -x "$loc/usage" || exit 1
7
8echo 'static const char packed_usage[] = '
9"$loc"/usage | bzip2 -1 | od -v -t x1 \
10| $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' || exit 1
11echo ';'
12sz=`"$loc"/usage | wc -c` || exit 1
13echo '#define SIZEOF_usage_messages' `expr 0 + $sz`
Note: See TracBrowser for help on using the repository browser.