summaryrefslogtreecommitdiffstats
path: root/etc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/Makefile')
-rw-r--r--etc/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 1f3444b..02b7439 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -166,6 +166,19 @@ distribution:
.endif
distrib-dirs:
+ -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \
+ while [ $$# -gt 0 ] ; \
+ do \
+ for dir in /usr/share/locale \
+ /usr/share/nls \
+ /usr/local/share/nls; \
+ do \
+ test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \
+ test -L "$$2" && rm -rf "$$2"; \
+ test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \
+ done; \
+ shift; shift; \
+ done
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
OpenPOWER on IntegriCloud