Welcome to mirror list, hosted at ThFree Co, Russian Federation.

usage_compressed « scripts - git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa12e4063b96661cb750866b9fd7f6c555e8cff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

loc="$1"

test "$loc" || loc=.

echo 'static const char packed_usage[] = '
"$loc"/usage | bzip2 -9 | od -v -t x1 \
| sed -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/'
echo ';'
echo '#define SIZEOF_usage_messages' $((0 + `"$loc"/usage | wc -c `))