summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2015-07-14 01:45:27 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-14 02:11:25 +0200
commit805240bae841c221c1dc6d42b07fca31d595e298 (patch)
tree47e2d1792e0db7780778b9eabceeda18ab8394be
parent89d39fc7a392530be043bac541ade0bef746edb6 (diff)
downloadbuildroot-805240bae841c221c1dc6d42b07fca31d595e298.tar.gz
buildroot-805240bae841c221c1dc6d42b07fca31d595e298.zip
purge-locales: further refactoring after removing man paths
Since the man paths have been removed, it is no longer necessary to grep them out and the loop can be simplified. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 02a1032442..f764ae5419 100644
--- a/Makefile
+++ b/Makefile
@@ -546,9 +546,9 @@ define PURGE_LOCALES
for dir in $(wildcard $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/lib/locale)); \
do \
- for lang in $$(cd $$dir; ls .|grep -v man); \
+ for langdir in $$dir/*; \
do \
- grep -qx $$lang $(LOCALE_WHITELIST) || rm -rf $$dir/$$lang; \
+ grep -qx $${langdir##*/} $(LOCALE_WHITELIST) || rm -rf $$langdir; \
done; \
done
endef
OpenPOWER on IntegriCloud