diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-04 23:34:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-04 23:34:02 +0200 |
commit | 08f0b784fd4351929090c877605762d664e70098 (patch) | |
tree | cd4674f92b0e2eb5276fffe3a3c41eb869f21bc8 | |
parent | 7e1bb4bc5c1e2724a00bb4ef18925c8ed6f44886 (diff) | |
download | busybox-w32-08f0b784fd4351929090c877605762d664e70098.tar.gz busybox-w32-08f0b784fd4351929090c877605762d664e70098.tar.bz2 busybox-w32-08f0b784fd4351929090c877605762d664e70098.zip |
Yet another attempt to stamp out "make -j" problems
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | applets/usage_compressed | 8 |
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 | |||
9 | test "$SED" || SED=sed | 9 | test "$SED" || SED=sed |
10 | test "$DD" || DD=dd | 10 | test "$DD" || DD=dd |
11 | 11 | ||
12 | exec >"$target" | 12 | exec >"$target.$$" |
13 | 13 | ||
14 | echo '#define UNPACKED_USAGE "" \' | 14 | echo '#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/$/ \\/' |
41 | echo '' | 41 | echo '' |
42 | |||
43 | if cmp -s "$target.$$" "$target" 2>/dev/null; then | ||
44 | rm -- "$target.$$" | ||
45 | else | ||
46 | mv -- "$target.$$" "$target" | ||
47 | fi | ||