svn commit: trunk/uClibc

vapier at uclibc.org vapier at uclibc.org
Sat Feb 18 20:08:19 UTC 2006


Author: vapier
Date: 2006-02-18 12:08:17 -0800 (Sat, 18 Feb 2006)
New Revision: 14117

Log:
use a tempfile while generating sysnum.h

Modified:
   trunk/uClibc/Makefile.in


Changeset:
Modified: trunk/uClibc/Makefile.in
===================================================================
--- trunk/uClibc/Makefile.in	2006-02-18 19:43:19 UTC (rev 14116)
+++ trunk/uClibc/Makefile.in	2006-02-18 20:08:17 UTC (rev 14117)
@@ -92,11 +92,13 @@
 	$(Q)\
 	set -e; \
 	cd $(top_builddir); \
-	top_builddir=. CC="$(CC)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > include/bits/sysnum.h.new; \
-	if cmp include/bits/sysnum.h include/bits/sysnum.h.new >/dev/null 2>&1; then \
-		$(RM) include/bits/sysnum.h.new; \
+	tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null`; \
+	[ -z "$$tmp" ] && tmp='include/bits/sysnum.h.new'; \
+	top_builddir=. CC="$(CC)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \
+	if cmp include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \
+		$(RM) $$tmp; \
 	else \
-		mv -f include/bits/sysnum.h.new include/bits/sysnum.h; \
+		mv -f $$tmp include/bits/sysnum.h; \
 	fi
 ifeq ($(UCLIBC_HAS_LOCALE),y)
 	$(MAKE) locale_headers




More information about the uClibc-cvs mailing list