2018-07-06 21:35:55 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
print_var()
|
|
|
|
{
|
|
|
|
VAR_NAME=$1
|
|
|
|
VAR_VALUE=$2
|
|
|
|
if [ "${VAR_VALUE}" != "" ] ; then
|
2018-09-03 16:05:29 +00:00
|
|
|
printf "export %s=%q\n" "${VAR_NAME}" "${VAR_VALUE}"
|
2018-07-06 21:35:55 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
env -0 | while IFS='=' read -r -d '' n v; do
|
2018-09-12 10:24:19 +00:00
|
|
|
if [[ "${n}" =~ ^TRAVIS* || "${n}" =~ ^R2* || "${n}" =~ SAN_* || "%{n}" =~ CODECOV_* || "%{n}" =~ VCS_* || "%{n}" =~ CI_* ]]; then
|
2018-09-03 16:05:29 +00:00
|
|
|
print_var "${n}" "${v}"
|
2018-07-06 21:35:55 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# print extra variables
|
|
|
|
print_var CC "${CC}"
|
|
|
|
print_var CXX "${CXX}"
|
|
|
|
print_var CFLAGS "${CFLAGS}"
|
|
|
|
print_var LDFLAGS "${LDFLAGS}"
|
|
|
|
print_var CXXFLAGS "${CXXFLAGS}"
|
2018-09-12 10:24:19 +00:00
|
|
|
print_var TRAVIS "${TRAVIS}"
|
2018-07-09 14:58:38 +00:00
|
|
|
print_var INSTALL_SYSTEM "${INSTALL_SYSTEM}"
|
2018-09-03 16:05:29 +00:00
|
|
|
print_var MESON_OPTIONS "${MESON_OPTIONS}"
|
|
|
|
print_var COVERAGE "${COVERAGE}"
|
2018-09-12 10:24:19 +00:00
|
|
|
print_var SHIPPABLE "${SHIPPABLE}"
|
|
|
|
print_var CI "${CI}"
|