From 02edfcaddf1a06775eab01ef742bb9eff640949b Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 16 Jan 2013 19:18:11 +0100 Subject: check if $CALLXSLTPROC is defined and bail out if not Change-Id: I2cbaffc35699942318b24492d02cf06397740009 --- solenv/bin/striplanguagetags.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'solenv') diff --git a/solenv/bin/striplanguagetags.sh b/solenv/bin/striplanguagetags.sh index 47343066a9ea..0df4b0be5225 100755 --- a/solenv/bin/striplanguagetags.sh +++ b/solenv/bin/striplanguagetags.sh @@ -14,6 +14,12 @@ # # All a bit hacky, but it should work +if [ -z "$CALLXSLTPROC" ]; then + echo "$0: \$CALLXSLTPROC not defined!" + echo "$0: Apparently we are not called from the build process, bailing out." + exit 1 +fi + tempfoo=`basename $0` XSL=`mktemp /tmp/${tempfoo}.XXXXXX` -- cgit