[Pkg-kde-commits] rev 1560 - branches/kde-3.4.0/cdbs

Adeodato Simó adeodato at costa.debian.org
Wed Aug 24 13:56:14 UTC 2005


Author: adeodato
Date: 2005-08-24 13:56:13 +0000 (Wed, 24 Aug 2005)
New Revision: 1560

Modified:
   branches/kde-3.4.0/cdbs/debian-qt-kde.mk
Log:
Use mktemp instead of versions.tmp.


Modified: branches/kde-3.4.0/cdbs/debian-qt-kde.mk
===================================================================
--- branches/kde-3.4.0/cdbs/debian-qt-kde.mk	2005-08-24 13:48:31 UTC (rev 1559)
+++ branches/kde-3.4.0/cdbs/debian-qt-kde.mk	2005-08-24 13:56:13 UTC (rev 1560)
@@ -38,11 +38,13 @@
 	touch debian/stamp-man-pages
 
 common-binary-arch::
-	perl debian/cdbs/versions.pl >debian/versions.tmp
+	( set -e; \
+	tmpf=`mktemp debian/versions.XXXXXX`; \
+	perl debian/cdbs/versions.pl >$$tmpf; \
 	for p in $(DEB_ALL_PACKAGES); do \
-	    cat debian/versions.tmp >>debian/$$p.substvars; \
-	done
-	rm -f debian/versions.tmp
+	    cat $$tmpf >>debian/$$p.substvars; \
+	done; \
+	rm -f $$tmpf )
 
 clean::
 	rm -rf debian/man/out




More information about the Pkg-kde-commits mailing list