Module Name:    src
Committed By:   uebayasi
Date:           Wed Feb 16 06:02:01 UTC 2011

Modified Files:
        src/distrib/sets: Makefile

Log Message:
RCSMETALOG: treat initial clean_METALOG nicely.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/distrib/sets/Makefile

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

Modified files:

Index: src/distrib/sets/Makefile
diff -u src/distrib/sets/Makefile:1.81 src/distrib/sets/Makefile:1.82
--- src/distrib/sets/Makefile:1.81	Wed Feb 16 05:18:35 2011
+++ src/distrib/sets/Makefile	Wed Feb 16 06:02:01 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.81 2011/02/16 05:18:35 uebayasi Exp $
+#	$NetBSD: Makefile,v 1.82 2011/02/16 06:02:01 uebayasi Exp $
 
 # Experimental RCS METALOG versioning
 # (Needs host's rcs(1) commands)
@@ -138,11 +138,11 @@
 clean_METALOG: .PHONY ${METALOG}.sanitised
 	mv ${METALOG}.sanitised ${METALOG}
 .if defined(RCSMETALOG)
-	mv ${METALOG}.sanitised,v ${METALOG},v
+	[ -f ${METALOG}.sanitised,v ] && mv ${METALOG}.sanitised,v ${METALOG},v
 .endif
 	rm -f ${METALOG}.*
 .if defined(RCSMETALOG)
-	mv ${METALOG},v ${METALOG}.sanitised,v
+	[ -f ${METALOG},v ] && mv ${METALOG},v ${METALOG}.sanitised,v
 .endif
 .endif	# MKUPDATE
 .endif	# MKUNPRIVED

Reply via email to