projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e1bb4b
)
Yet another attempt to stamp out "make -j" problems
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 4 Jul 2010 21:34:02 +0000
(23:34 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 4 Jul 2010 21:34:02 +0000
(23:34 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
applets/usage_compressed
patch
|
blob
|
history
diff --git
a/applets/usage_compressed
b/applets/usage_compressed
index bfd5aa8739f8d5bf65ad608f30998215e29958d6..9ddf16d389887b9cc0656c1567478e2efe50ec45 100755
(executable)
--- a/
applets/usage_compressed
+++ b/
applets/usage_compressed
@@
-9,7
+9,7
@@
test -x "$loc/usage" || exit 1
test "$SED" || SED=sed
test "$DD" || DD=dd
-exec >"$target"
+exec >"$target
.$$
"
echo '#define UNPACKED_USAGE "" \'
"$loc/usage" | od -v -t x1 \
@@
-39,3
+39,9
@@
echo '#define PACKED_USAGE \'
-e 's/\(..\)/0x\1,/g' \
-e 's/$/ \\/'
echo ''
+
+if cmp -s "$target.$$" "$target" 2>/dev/null; then
+ rm -- "$target.$$"
+else
+ mv -- "$target.$$" "$target"
+fi