svn commit: r196743 - user/edwin/locale/share/msgdef
Edwin Groothuis
edwin at FreeBSD.org
Tue Sep 1 22:03:29 UTC 2009
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>
More information about the svn-src-user
mailing list