mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 08:44:11 +01:00
Add THIS_LANG sanity check to Makefile.doc.
This commit is contained in:
@@ -6,6 +6,9 @@ BASE = ../../../common
|
|||||||
|
|
||||||
THIS_LOCALE = $(notdir $(shell pwd))
|
THIS_LOCALE = $(notdir $(shell pwd))
|
||||||
THIS_LANG = $(firstword $(subst -, ,$(THIS_LOCALE)))
|
THIS_LANG = $(firstword $(subst -, ,$(THIS_LOCALE)))
|
||||||
|
ifneq ($(strip $(shell echo -n $(THIS_LANG) | wc -c)),2)
|
||||||
|
THIS_LANG = en
|
||||||
|
endif
|
||||||
|
|
||||||
ADC_SRC_FILES = $(wildcard *.txt)
|
ADC_SRC_FILES = $(wildcard *.txt)
|
||||||
ADC_FILES = $(ADC_SRC_FILES:%.txt=%.html)
|
ADC_FILES = $(ADC_SRC_FILES:%.txt=%.html)
|
||||||
|
|||||||
Reference in New Issue
Block a user