projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make usage_compressed.h generation _always_ update mtime
[oweals/busybox.git]
/
applets
/
usage_compressed
diff --git
a/applets/usage_compressed
b/applets/usage_compressed
index bfd5aa8739f8d5bf65ad608f30998215e29958d6..e1fd0d94df9009477f9b1488951e5cb6b3cf0de5 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
test "$SED" || SED=sed
test "$DD" || DD=dd
-exec >"$target"
+exec >"$target
.$$
"
echo '#define UNPACKED_USAGE "" \'
"$loc/usage" | od -v -t x1 \
echo '#define UNPACKED_USAGE "" \'
"$loc/usage" | od -v -t x1 \
@@
-39,3
+39,5
@@
echo '#define PACKED_USAGE \'
-e 's/\(..\)/0x\1,/g' \
-e 's/$/ \\/'
echo ''
-e 's/\(..\)/0x\1,/g' \
-e 's/$/ \\/'
echo ''
+
+mv -- "$target.$$" "$target"