Rewrite this hack

-rm -rf ${LOCALEDIR}/*/LC_MESSAGES
and move it inside loop.
It can damage user-made ${LOCALEDIR}/* locales otherwise.
This commit is contained in:
Andrey A. Chernov 2004-09-02 22:09:33 +00:00
parent accbe49470
commit ac0ae7472c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134663

View file

@ -99,9 +99,8 @@ PT_LINKS= pt_BR
all: ${LOCALES:S/$/.out/g}
afterinstall:
# HACK: remove LC_MESSAGES directories before installing LC_MESSAGES file
-rm -rf ${LOCALEDIR}/*/LC_MESSAGES
.for lang in ${LOCALES}
-rm -rf ${LOCALEDIR}/${lang}/LC_MESSAGES
${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \
${LOCALEDIR}/${lang}/LC_MESSAGES
.endfor