]> granicus.if.org Git - libvpx/commitdiff
tools_common.sh: Add a pseudo include guard.
authorTom Finegan <tomfinegan@google.com>
Tue, 29 Apr 2014 00:16:05 +0000 (17:16 -0700)
committerTom Finegan <tomfinegan@google.com>
Tue, 29 Apr 2014 00:16:05 +0000 (17:16 -0700)
Change-Id: Iac931dee8fa428a2182d20e48ee515d7c77885c0

test/tools_common.sh

index 45b77717861b82ede51229ca07d997866fb2a4ad..0f5cbb9e008f43ca1b24d840ba0e4180610eb38c 100755 (executable)
@@ -9,6 +9,11 @@
 ##  be found in the AUTHORS file in the root of the source tree.
 ##
 ##  This file contains shell code shared by test scripts for libvpx tools.
+
+# Use $VPX_TEST_TOOLS_COMMON_SH as a pseudo include guard.
+if [ -z "${VPX_TEST_TOOLS_COMMON_SH}" ]; then
+VPX_TEST_TOOLS_COMMON_SH=included
+
 set -e
 
 # Sets $VPX_TOOL_TEST to the name specified by positional parameter one.
@@ -441,3 +446,5 @@ $(basename "${0%.*}") test configuration:
   VPX_TEST_RUN_DISABLED_TESTS=${VPX_TEST_RUN_DISABLED_TESTS}
 EOF
 fi
+
+fi  # End $VPX_TEST_TOOLS_COMMON_SH pseudo include guard.