From a0fcde5b4a3e8f9a988a18dc0fa37b9513a3bbd0 Mon Sep 17 00:00:00 2001 From: Ted Pavlic Date: Thu, 15 Jan 2009 22:49:43 -0500 Subject: [PATCH] Add THIS_LANG sanity check to Makefile.doc. --- common/Makefile.doc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/Makefile.doc b/common/Makefile.doc index a340d77a..7111a941 100644 --- a/common/Makefile.doc +++ b/common/Makefile.doc @@ -6,6 +6,9 @@ BASE = ../../../common THIS_LOCALE = $(notdir $(shell pwd)) 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_FILES = $(ADC_SRC_FILES:%.txt=%.html)