Module Name:    src
Committed By:   riastradh
Date:           Wed Jan 22 06:14:55 UTC 2014

Modified Files:
        src/usr.bin/vndcompress: Makefile

Log Message:
Use write-to-temporary/rename-to-permanent pattern in Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/vndcompress/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/vndcompress/Makefile
diff -u src/usr.bin/vndcompress/Makefile:1.6 src/usr.bin/vndcompress/Makefile:1.7
--- src/usr.bin/vndcompress/Makefile:1.6	Wed Jan 22 06:14:46 2014
+++ src/usr.bin/vndcompress/Makefile	Wed Jan 22 06:14:55 2014
@@ -145,13 +145,17 @@ check: .PHONY ${CHECKS}
 .SUFFIXES: .cl2 .cl2x .in .out .outx
 
 .in.cl2: vndcompress
-	./vndcompress ${.IMPSRC} ${.TARGET} ${BLOCKSIZE.${.PREFIX}}
+	./vndcompress ${.IMPSRC} ${.TARGET}.tmp ${BLOCKSIZE.${.PREFIX}} \
+	&& mv -f ${.TARGET}.tmp ${.TARGET}
 
 .in.cl2x:
-	vndcompress ${.IMPSRC} ${.TARGET} ${BLOCKSIZE.${.PREFIX}}
+	vndcompress ${.IMPSRC} ${.TARGET}.tmp ${BLOCKSIZE.${.PREFIX}} \
+	&& mv -f ${.TARGET}.tmp ${.TARGET}
 
 .cl2.out: vndcompress
-	./vndcompress -d ${.IMPSRC} ${.TARGET}
+	./vndcompress -d ${.IMPSRC} ${.TARGET}.tmp \
+	&& mv -f ${.TARGET}.tmp ${.TARGET}
 
 .cl2.outx:
-	vnduncompress ${.IMPSRC} ${.TARGET}
+	vnduncompress ${.IMPSRC} ${.TARGET}.tmp \
+	&& mv -f ${.TARGET}.tmp ${.TARGET}

Reply via email to