Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2009 22:03:29 +0000 (UTC)
From:      Edwin Groothuis <edwin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r196743 - user/edwin/locale/share/msgdef
Message-ID:  <200909012203.n81M3TvQ073553@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: edwin
Date: Tue Sep  1 22:03:29 2009
New Revision: 196743
URL: http://svn.freebsd.org/changeset/base/196743

Log:
  Add the clean of the before-install back.

Modified:
  user/edwin/locale/share/msgdef/Makefile

Modified: user/edwin/locale/share/msgdef/Makefile
==============================================================================
--- user/edwin/locale/share/msgdef/Makefile	Tue Sep  1 21:21:46 2009	(r196742)
+++ user/edwin/locale/share/msgdef/Makefile	Tue Sep  1 22:03:29 2009	(r196743)
@@ -227,26 +227,15 @@ ${ccln}.${cms}.out: ${ccln}.src
 .endif
 .endfor
 
-#.for locale in ${LOCALES}
-#.endfor
-#
-#CLEANFILES=	${FILES}
-#
-#SYMLINKS=
-#.for enc1 in ${ENCODINGS}
-#.for enc2 in ${ENCODINGS}
-#.for lang_terr in ${${enc1}_${enc2}}
-#SYMLINKS+=	../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \
-#		${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2}
-#.endfor
-#.endfor
-#.endfor
-#
-#beforeinstall:
-#.for locale in ${LOCALES}
-#.if exists(${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES/)
-#	rm -rf ${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES
-#.endif
-#.endfor
+beforeinstall:
+.for f in ${FILES:S/.out//}
+	rm -f ${DESTDIR}/${LOCALEDIR}/${f}/${FILESNAME}
+.endfor
+	set ${SYMLINKS}; \
+	while [ ! -z "$1" ]; do \
+		shift; \
+		rm -f ${DESTDIR}/$$1/${FILESNAME}; \
+		shift; \
+	done
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909012203.n81M3TvQ073553>