mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Simplify NLS alias handling by using native make(1) multi variable for loops
This commit is contained in:
parent
4dd729a55b
commit
874e7db1f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340114
10
etc/Makefile
10
etc/Makefile
|
@ -4,6 +4,8 @@
|
|||
.include <src.opts.mk>
|
||||
|
||||
FILESGROUPS= FILES
|
||||
NLS_ALIASES= POSIX C \
|
||||
en_US.US_ASCII C
|
||||
|
||||
# No need as it is empty and just causes rebuilds since this file does so much.
|
||||
UPDATE_DEPENDFILE= no
|
||||
|
@ -182,11 +184,9 @@ distrib-dirs: ${MTREES:N/*} distrib-cleanup .PHONY
|
|||
.endfor
|
||||
.endif
|
||||
.if ${MK_NLS} != "no"
|
||||
set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
|
||||
while [ $$# -gt 0 ] ; do \
|
||||
${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/nls/$$1"; \
|
||||
shift; shift; \
|
||||
done
|
||||
.for alias nls in ${NLS_ALIASES}
|
||||
${INSTALL_SYMLINK} "${nls}" "${DESTDIR}${SHAREDIR}/nls/${alias}"
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
etc-examples: ${META_DEPS}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
# $FreeBSD$
|
||||
|
||||
POSIX C
|
||||
en_US.US-ASCII C
|
Loading…
Reference in a new issue