[Libreoffice-commits] core.git: bin/oss-fuzz-build.sh

Caolán McNamara caolanm at redhat.com
Thu Mar 9 11:11:14 UTC 2017


 bin/oss-fuzz-build.sh |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 9e4f6531bf0ae8b375127a189e87c1ebc99508ac
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 9 11:09:50 2017 +0000

    report that we export certain vars to be set
    
    Change-Id: I3a71542da943a689ab734507c811087caa427a1c

diff --git a/bin/oss-fuzz-build.sh b/bin/oss-fuzz-build.sh
index c4084b5..2c54e13 100755
--- a/bin/oss-fuzz-build.sh
+++ b/bin/oss-fuzz-build.sh
@@ -1,4 +1,9 @@
-#!/bin/bash -eu
+#!/bin/bash -e
+
+if [ -z "${OUT}" ] || [ -z "${SRC}" ] || [ -z "${WORK}" ]; then
+    echo "OUT, SRC or WORK not set - script expects to be called inside oss-fuzz build env"
+    exit 1
+fi
 
 #shuffle CXXFLAGS -stdlib=libc++ arg into CXX as well because we use
 #the CXX as the linker and need to pass -stdlib=libc++ to build


More information about the Libreoffice-commits mailing list