aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapplets/usage_compressed8
1 files changed, 7 insertions, 1 deletions
diff --git a/applets/usage_compressed b/applets/usage_compressed
index bfd5aa873..9ddf16d38 100755
--- a/applets/usage_compressed
+++ b/applets/usage_compressed
@@ -9,7 +9,7 @@ test -x "$loc/usage" || exit 1
9test "$SED" || SED=sed 9test "$SED" || SED=sed
10test "$DD" || DD=dd 10test "$DD" || DD=dd
11 11
12exec >"$target" 12exec >"$target.$$"
13 13
14echo '#define UNPACKED_USAGE "" \' 14echo '#define UNPACKED_USAGE "" \'
15"$loc/usage" | od -v -t x1 \ 15"$loc/usage" | od -v -t x1 \
@@ -39,3 +39,9 @@ echo '#define PACKED_USAGE \'
39 -e 's/\(..\)/0x\1,/g' \ 39 -e 's/\(..\)/0x\1,/g' \
40 -e 's/$/ \\/' 40 -e 's/$/ \\/'
41echo '' 41echo ''
42
43if cmp -s "$target.$$" "$target" 2>/dev/null; then
44 rm -- "$target.$$"
45else
46 mv -- "$target.$$" "$target"
47fi