summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-01-16 19:18:11 +0100
committerEike Rathke <erack@redhat.com>2013-01-16 19:18:40 +0100
commit02edfcaddf1a06775eab01ef742bb9eff640949b (patch)
treeb400f422ab5e48c923b230213f10d1caa9f9559d /solenv
parent83b729ebcf525d03ce4c0c85dd871c91968e78ac (diff)
check if $CALLXSLTPROC is defined and bail out if not
Change-Id: I2cbaffc35699942318b24492d02cf06397740009
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/striplanguagetags.sh6
1 files changed, 6 insertions, 0 deletions
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`