Module Name:    src
Committed By:   apb
Date:           Sun Jan 26 17:00:03 UTC 2014

Modified Files:
        src/distrib/notes: Makefile.inc

Log Message:
For MKREPRO, remove the "%%CreationDate:" comment line from
PostScript output files.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/distrib/notes/Makefile.inc

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

Modified files:

Index: src/distrib/notes/Makefile.inc
diff -u src/distrib/notes/Makefile.inc:1.41 src/distrib/notes/Makefile.inc:1.42
--- src/distrib/notes/Makefile.inc:1.41	Sat Oct 25 22:27:34 2008
+++ src/distrib/notes/Makefile.inc	Sun Jan 26 17:00:03 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.41 2008/10/25 22:27:34 apb Exp $
+#	$NetBSD: Makefile.inc,v 1.42 2014/01/26 17:00:03 apb Exp $
 #
 
 # Ross Harvey <[email protected]>
@@ -51,9 +51,12 @@ TOC.html=	${TOCS:M*.HTML.*}
 TOC.more=	${TOCS:M*.more.*}
 .endif
 
+REMOVE_CREATION_DATE= ${TOOL_SED} -e '/^%%CreationDate:/d'
 
 ${TARG}.ps: ${SRCS} ${TOC.ps} ${DISTRIBVERDEP}
-	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} > $@
+	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${MAIN} \
+	    ${${MKREPRO:Uno} == "yes":? | ${REMOVE_CREATION_DATE} :} \
+	    > $@
 
 ${TARG}.pdf: ${TARG}.ps
 	ps2pdf ${TARG}.ps $@

Reply via email to