summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-23 10:17:41 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-14 22:49:25 +0100
commit115577807b0c1d65b97255fe5336ac5c257da5a1 (patch)
treecccd78ba491f139ea6e6fbcce8ecb54f8adcc879 /extra
parent8b150a9491490fd4464de0f1228762c921dc7f64 (diff)
buildsys: remove calls to mktemp
Nowadays we should not be racy in this area anymore, so simplify generating temporary build-files. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'extra')
-rw-r--r--extra/locale/Makefile.in12
1 files changed, 3 insertions, 9 deletions
diff --git a/extra/locale/Makefile.in b/extra/locale/Makefile.in
index 221a51585..3834c5c9e 100644
--- a/extra/locale/Makefile.in
+++ b/extra/locale/Makefile.in
@@ -111,16 +111,10 @@ ifeq ($(UCLIBC_BUILD_MINIMAL_LOCALE),y)
$(Q)echo "$(CURDIR)/$(locale_DIR)/charmaps/ISO-8859-1.pairs" >> $@
else
$(Q)set -e; \
- tmp=`mktemp $@.XXXXXX 2>/dev/null || true`; \
- [ -z "$$tmp" ] && tmp='$@.new'; \
find $(CURDIR)/$(locale_DIR)/charmaps/ -name '*.pairs' | \
- sort > $$tmp; \
- [ -s $$tmp ]; \
- if cmp $@ $$tmp >/dev/null 2>&1; then \
- $(RM) $$tmp; \
- else \
- mv -f $$tmp $@; \
- fi
+ sort > $@.new; \
+ [ -s $@.new ]; \
+ cmp -s $@ $@.new && $(RM) $@.new || mv -f $@.new $@
endif
# the lines beginning w/ '#-' are mandatory