mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
Yet another attempt to stamp out "make -j" problems
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
7e1bb4bc5c
commit
08f0b784fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user