timescaledb/scripts/check_license_all.sh
Sven Klemm 92bdcf02d1 Fix license check return code
This patch fixes the return code of the license check, previously
it would always return the return code of the apache license check.
Additionally we check for the license in versioned sql base files
too so we dont miss files without license when the versioned sql
file has not been generated.
This patch also adds a missing newline to the jit_load.sql file
so the license check properly detects the license and fixes the
license for the continuous_aggs_union_view test.
2020-06-02 11:13:10 +02:00

14 lines
427 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR=$(dirname $0)
BASE_DIR=$(dirname ${SCRIPT_DIR})
SRC_DIR=$BASE_DIR ${SCRIPT_DIR}/check_license.sh -c ${BASE_DIR}/src -s ${BASE_DIR}/sql -c ${BASE_DIR}/test -t ${BASE_DIR}/test
exit_apache=$?
SRC_DIR=$BASE_DIR ${SCRIPT_DIR}/check_license.sh -e ${BASE_DIR}/tsl/src -u ${BASE_DIR}/tsl/test/sql -e ${BASE_DIR}/tsl/test/src
exit_tsl=$?
if [ ${exit_apache} -ne 0 ] || [ ${exit_tsl} -ne 0 ]; then
exit 1
fi