Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/sets RCSMETALOG: treat initial clean_METALOG nicely.



details:   https://anonhg.NetBSD.org/src/rev/4ca756f1ea2f
branches:  trunk
changeset: 762118:4ca756f1ea2f
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Wed Feb 16 06:02:01 2011 +0000

description:
RCSMETALOG: treat initial clean_METALOG nicely.

diffstat:

 distrib/sets/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 90e8f12843a4 -r 4ca756f1ea2f distrib/sets/Makefile
--- a/distrib/sets/Makefile     Wed Feb 16 05:18:35 2011 +0000
+++ b/distrib/sets/Makefile     Wed Feb 16 06:02:01 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index