Module Name:    src
Committed By:   christos
Date:           Wed Sep  5 19:31:04 UTC 2012

Modified Files:
        src/crypto/external/bsd/heimdal: Makefile.rules.inc

Log Message:
fix MKREPRO build not to put Generated from ${NETBSDSRCDIR} in files.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/crypto/external/bsd/heimdal/Makefile.rules.inc

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

Modified files:

Index: src/crypto/external/bsd/heimdal/Makefile.rules.inc
diff -u src/crypto/external/bsd/heimdal/Makefile.rules.inc:1.6 src/crypto/external/bsd/heimdal/Makefile.rules.inc:1.7
--- src/crypto/external/bsd/heimdal/Makefile.rules.inc:1.6	Sun Jul 31 05:58:19 2011
+++ src/crypto/external/bsd/heimdal/Makefile.rules.inc	Wed Sep  5 15:31:04 2012
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.rules.inc,v 1.6 2011/07/31 09:58:19 plunky Exp $
+# $NetBSD: Makefile.rules.inc,v 1.7 2012/09/05 19:31:04 christos Exp $
 
 SRCS+= ${HEIMSRCS:N*.et:N*.in:N*.asn1}
 
@@ -66,10 +66,15 @@ ${src:.asn1=.ts}: ${src} ${TOOL_ASN1_COM
 	    cp ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h}
 .endif
 
+.if ${MKREPRO:Uno} == "yes"
+NORMALIZE_SRC=-e "s@${NETBSDSRCDIR}@/usr/src@g" 
+.endif
+
 .for x2c in ${ASN1_FILES.${src}}
 ${x2c:.x=.c}: ${x2c}
-	@cmp -s ${x2c} ${x2c:.x=.c} 2> /dev/null || cp ${x2c} ${x2c:.x=.c}
-
+	@${TOOL_SED} ${NORMALIZE_SRC} < ${x2c} > ${x2c}.r
+	@cmp -s ${x2c}.r ${x2c:.x=.c} 2> /dev/null || cp ${x2c}.r ${x2c:.x=.c}
+	@rm -f ${x2c}.r
 .endfor
 
 .endfor

Reply via email to