diff options
author | Eike Rathke <erack@redhat.com> | 2013-01-16 19:18:11 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-01-16 19:18:40 +0100 |
commit | 02edfcaddf1a06775eab01ef742bb9eff640949b (patch) | |
tree | b400f422ab5e48c923b230213f10d1caa9f9559d | |
parent | 83b729ebcf525d03ce4c0c85dd871c91968e78ac (diff) |
check if $CALLXSLTPROC is defined and bail out if not
Change-Id: I2cbaffc35699942318b24492d02cf06397740009
-rwxr-xr-x | solenv/bin/striplanguagetags.sh | 6 |
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` |