mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 18:43:18 +08:00
Add license information to files missing it and fix the license check script to honor the return code of both the apache license check and the TSL license check. Previously errors occurring during apache license check would not be reflected in the return code of the script, so only the TSL license check was effective.
11 lines
390 B
Bash
Executable File
11 lines
390 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=$?
|
|
|
|
exit ${exit_apache} || ${exit_tsl}
|