purge-locales: fix handling of X11 locale.dir
authorValentine Barshak <gvaxon@gmail.com>
Mon, 13 Jul 2015 23:45:28 +0000 (01:45 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 14 Jul 2015 00:11:47 +0000 (02:11 +0200)
commitb791571c030f0be004bdb180013ca6650dfe6b09
tree16dcaedfb42c4b3b40c85a24a8c2380186fce929
parent805240bae841c221c1dc6d42b07fca31d595e298
purge-locales: fix handling of X11 locale.dir

The /usr/share/X11/locale/locale.dir file is needed by libX11.
Removing it breaks locale support in X11. However, make removes
not only directories but also all files, which are not listed
in the BR2_ENABLE_LOCALE_WHITELIST.

This re-creates locale.dir database file where needed.

Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Arnout: use a separate loop, and add some explanatory comments]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile