Module Name:    src
Committed By:   mrg
Date:           Wed Mar  6 05:21:50 UTC 2019

Modified Files:
        src/external/mit/xorg/bin/xdm/config: Makefile

Log Message:
- clean up a little and avoid leaving partial files
- put SEDSCRIPTS into FILES vs CONFIGFILES, so they're install properly


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/mit/xorg/bin/xdm/config/Makefile

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

Modified files:

Index: src/external/mit/xorg/bin/xdm/config/Makefile
diff -u src/external/mit/xorg/bin/xdm/config/Makefile:1.16 src/external/mit/xorg/bin/xdm/config/Makefile:1.17
--- src/external/mit/xorg/bin/xdm/config/Makefile:1.16	Wed Mar  6 04:43:50 2019
+++ src/external/mit/xorg/bin/xdm/config/Makefile	Wed Mar  6 05:21:50 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2019/03/06 04:43:50 christos Exp $
+#	$NetBSD: Makefile,v 1.17 2019/03/06 05:21:50 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -31,6 +31,7 @@ FILESBUILD_$f=yes
 
 .in:
 	${_MKTARGET_CREATE}
+	rm -f ${.TARGET}
 	${TOOL_SED} \
 		-e '/ifdef XPM/d' -e '/endif \/\* XPM \*\//d' \
 		-e 's,BITMAPDIR,${X11INCDIR}/X11/pixmaps,' \
@@ -56,14 +57,17 @@ FILESBUILD_$f=yes
 		-e 's,XHASH,\#,' \
 		-e 's,\<NLBS\>,\\n\\,' \
 		-e 's,\<BS\>,\\,' \
-		-e 's,/\*\*/,,g' < ${.IMPSRC} > ${.TARGET}
+		-e 's,/\*\*/,,g' \
+		< ${.IMPSRC} > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
+
+CLEANFILES+=	${SEDSCRIPTS} ${SEDSCRIPTS:=.tmp}
 
 CONFIGFILES+=		GiveConsole TakeConsole \
-			Xaccess Xservers.fs Xsession Xsetup_0 Xwilling \
-			${SEDSCRIPTS} 
+			Xaccess Xservers.fs Xsession Xsetup_0 Xwilling
 FILES+=			xorg-bw.xpm xorg.xpm \
 			NetBSD-bw.xpm NetBSD-inv.xpm NetBSD.xpm	\
-			NetBSD-flag.png NetBSD-flag1.xpm NetBSD-flag2.xpm
+			NetBSD-flag.png NetBSD-flag1.xpm NetBSD-flag2.xpm \
+			${SEDSCRIPTS} 
 FILESDIR=		${XDMDIR}
 FILESDIR_xorg.xpm=	${X11INCDIR}/X11/pixmaps
 FILESDIR_xorg-bw.xpm=	${X11INCDIR}/X11/pixmaps

Reply via email to