diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/applet_tables.c | 10 | ||||
-rwxr-xr-x | applets/usage_compressed | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c index 152d5f441..94b974e09 100644 --- a/applets/applet_tables.c +++ b/applets/applet_tables.c | |||
@@ -53,7 +53,7 @@ int main(int argc, char **argv) | |||
53 | { | 53 | { |
54 | int i; | 54 | int i; |
55 | int ofs; | 55 | int ofs; |
56 | unsigned MAX_APPLET_NAME_LEN = 1; | 56 | // unsigned MAX_APPLET_NAME_LEN = 1; |
57 | 57 | ||
58 | qsort(applets, NUM_APPLETS, sizeof(applets[0]), cmp_name); | 58 | qsort(applets, NUM_APPLETS, sizeof(applets[0]), cmp_name); |
59 | 59 | ||
@@ -89,8 +89,8 @@ int main(int argc, char **argv) | |||
89 | printf("const char applet_names[] ALIGN1 = \"\"\n"); | 89 | printf("const char applet_names[] ALIGN1 = \"\"\n"); |
90 | for (i = 0; i < NUM_APPLETS; i++) { | 90 | for (i = 0; i < NUM_APPLETS; i++) { |
91 | printf("\"%s\" \"\\0\"\n", applets[i].name); | 91 | printf("\"%s\" \"\\0\"\n", applets[i].name); |
92 | if (MAX_APPLET_NAME_LEN < strlen(applets[i].name)) | 92 | // if (MAX_APPLET_NAME_LEN < strlen(applets[i].name)) |
93 | MAX_APPLET_NAME_LEN = strlen(applets[i].name); | 93 | // MAX_APPLET_NAME_LEN = strlen(applets[i].name); |
94 | } | 94 | } |
95 | printf(";\n\n"); | 95 | printf(";\n\n"); |
96 | 96 | ||
@@ -130,8 +130,8 @@ int main(int argc, char **argv) | |||
130 | printf("};\n"); | 130 | printf("};\n"); |
131 | #endif | 131 | #endif |
132 | //printf("#endif /* SKIP_definitions */\n"); | 132 | //printf("#endif /* SKIP_definitions */\n"); |
133 | printf("\n"); | 133 | // printf("\n"); |
134 | printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN); | 134 | // printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN); |
135 | 135 | ||
136 | if (argv[2]) { | 136 | if (argv[2]) { |
137 | char line_old[80]; | 137 | char line_old[80]; |
diff --git a/applets/usage_compressed b/applets/usage_compressed index af66bc5dc..fb6e1c286 100755 --- a/applets/usage_compressed +++ b/applets/usage_compressed | |||
@@ -10,20 +10,20 @@ test "$SED" || SED=sed | |||
10 | test "$DD" || DD=dd | 10 | test "$DD" || DD=dd |
11 | 11 | ||
12 | # Some people were bitten by their system lacking a (proper) od | 12 | # Some people were bitten by their system lacking a (proper) od |
13 | od -v -t x1 </dev/null >/dev/null | 13 | od -v -b </dev/null >/dev/null |
14 | if test $? != 0; then | 14 | if test $? != 0; then |
15 | echo 'od tool is not installed or cannot accept "-v -t x1" options' | 15 | echo 'od tool is not installed or cannot accept "-v -b" options' |
16 | exit 1 | 16 | exit 1 |
17 | fi | 17 | fi |
18 | 18 | ||
19 | exec >"$target.$$" | 19 | exec >"$target.$$" |
20 | 20 | ||
21 | echo '#define UNPACKED_USAGE "" \' | 21 | echo '#define UNPACKED_USAGE "" \' |
22 | "$loc/usage" | od -v -t x1 \ | 22 | "$loc/usage" | od -v -b \ |
23 | | $SED -e 's/^[^ ]*//' \ | 23 | | $SED -e 's/^[^ ]*//' \ |
24 | -e 's/ //g' \ | 24 | -e 's/ //g' \ |
25 | -e '/^$/d' \ | 25 | -e '/^$/d' \ |
26 | -e 's/\(..\)/\\x\1/g' \ | 26 | -e 's/\(...\)/\\\1/g' \ |
27 | -e 's/^/"/' \ | 27 | -e 's/^/"/' \ |
28 | -e 's/$/" \\/' | 28 | -e 's/$/" \\/' |
29 | echo '' | 29 | echo '' |
@@ -39,11 +39,11 @@ echo '#define PACKED_USAGE \' | |||
39 | ## -e '/^$/d' \ | 39 | ## -e '/^$/d' \ |
40 | ## -e 's/\(..\)\(..\)/0x\2,0x\1,/g' | 40 | ## -e 's/\(..\)\(..\)/0x\2,0x\1,/g' |
41 | ## -e 's/$/ \\/' | 41 | ## -e 's/$/ \\/' |
42 | "$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -t x1 \ | 42 | "$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -b \ |
43 | | $SED -e 's/^[^ ]*//' \ | 43 | | $SED -e 's/^[^ ]*//' \ |
44 | -e 's/ //g' \ | 44 | -e 's/ //g' \ |
45 | -e '/^$/d' \ | 45 | -e '/^$/d' \ |
46 | -e 's/\(..\)/0x\1,/g' \ | 46 | -e 's/\(...\)/0\1,/g' \ |
47 | -e 's/$/ \\/' | 47 | -e 's/$/ \\/' |
48 | echo '' | 48 | echo '' |
49 | 49 | ||