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:
ache 2004-09-02 22:09:33 +00:00
parent 621b91453c
commit f98c7bd8b6

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