mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
Makefile: Fix the generation of locales
The -s option is only mandatory for the charmap, else the filename is always empty and nothing is generated. Signed-off-by: Thierry Bultel <thierry.bultel@wanadoo.fr> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
b35acfffbd
commit
ea27d6e929
2
Makefile
2
Makefile
@ -554,7 +554,7 @@ ifneq ($(GENERATE_LOCALE),)
|
|||||||
target-generatelocales: host-localedef
|
target-generatelocales: host-localedef
|
||||||
$(Q)mkdir -p $(TARGET_DIR)/usr/lib/locale/
|
$(Q)mkdir -p $(TARGET_DIR)/usr/lib/locale/
|
||||||
$(Q)for locale in $(GENERATE_LOCALE) ; do \
|
$(Q)for locale in $(GENERATE_LOCALE) ; do \
|
||||||
inputfile=`echo $${locale} | cut -f1 -d'.' -s` ; \
|
inputfile=`echo $${locale} | cut -f1 -d'.'` ; \
|
||||||
charmap=`echo $${locale} | cut -f2 -d'.' -s` ; \
|
charmap=`echo $${locale} | cut -f2 -d'.' -s` ; \
|
||||||
if test -z "$${charmap}" ; then \
|
if test -z "$${charmap}" ; then \
|
||||||
charmap="UTF-8" ; \
|
charmap="UTF-8" ; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user