Remove list numbering in output_env.sh

This commit is contained in:
Simon Butcher 2016-09-09 15:30:29 +01:00
parent 41eeccf76b
commit 40122e015a

View file

@ -17,169 +17,151 @@
# - version of libc, clang, asan and valgrind if installed # - version of libc, clang, asan and valgrind if installed
# - version of gnuTLS and OpenSSL # - version of gnuTLS and OpenSSL
COUNT=1
echo echo
echo "$COUNT) Operating system and architecture:" echo "* Operating system and architecture:"
uname -a uname -a
COUNT=$((COUNT+1))
echo echo
if `hash armcc > /dev/null 2>&1`; then if `hash armcc > /dev/null 2>&1`; then
echo "$COUNT) armcc:" echo "* armcc:"
armcc --vsn | head -n 2 armcc --vsn | head -n 2
else else
echo "$COUNT) armcc not found!" echo "* armcc not found!"
fi fi
COUNT=$((COUNT+1))
echo echo
if `hash arm-none-eabi-gcc > /dev/null 2>&1`; then if `hash arm-none-eabi-gcc > /dev/null 2>&1`; then
echo "$COUNT) gcc-arm:" echo "* gcc-arm:"
arm-none-eabi-gcc --version | head -n 1 arm-none-eabi-gcc --version | head -n 1
else else
echo "$COUNT) gcc-arm not found!" echo "* gcc-arm not found!"
fi fi
COUNT=$((COUNT+1))
echo echo
if `hash gcc > /dev/null 2>&1`; then if `hash gcc > /dev/null 2>&1`; then
echo "$COUNT) gcc:" echo "* gcc:"
gcc --version | head -n 1 gcc --version | head -n 1
else else
echo "$COUNT) gcc not found!" echo "* gcc not found!"
fi fi
COUNT=$((COUNT+1))
echo echo
if `hash clang > /dev/null 2>&1`; then if `hash clang > /dev/null 2>&1`; then
echo "$COUNT) clang:" echo "* clang:"
clang --version | head -n 2 clang --version | head -n 2
clang -v 2>&1 | grep Selected clang -v 2>&1 | grep Selected
else else
echo "$COUNT) clang not found!" echo "* clang not found!"
fi fi
COUNT=$((COUNT+1))
echo echo
if `hash ldd > /dev/null 2>&1`; then if `hash ldd > /dev/null 2>&1`; then
echo "$COUNT) libc:" echo "* libc:"
ldd --version | head -n 1 ldd --version | head -n 1
else else
echo "$COUNT) No ldd present: can't determine libc version!" echo "* No ldd present: can't determine libc version!"
fi fi
COUNT=$((COUNT+1))
echo echo
if `hash valgrind > /dev/null 2>&1`; then if `hash valgrind > /dev/null 2>&1`; then
echo "$COUNT) valgrind:" echo "* valgrind:"
valgrind --version valgrind --version
else else
echo "$COUNT) valgrind not found!" echo "* valgrind not found!"
fi fi
COUNT=$((COUNT+1))
echo echo
if `hash openssl > /dev/null 2>&1`; then if `hash openssl > /dev/null 2>&1`; then
echo "$COUNT) openssl:" echo "* openssl:"
openssl version openssl version
else else
echo "$COUNT) openssl not found!" echo "* openssl not found!"
fi fi
COUNT=$((COUNT+1))
if [ -n "${OPENSSL+set}" ]; then if [ -n "${OPENSSL+set}" ]; then
echo echo
if `hash "$OPENSSL" > /dev/null 2>&1`; then if `hash "$OPENSSL" > /dev/null 2>&1`; then
echo "$COUNT) $OPENSSL at environment variable 'OPENSSL':" echo "* $OPENSSL at environment variable 'OPENSSL':"
$OPENSSL version $OPENSSL version
else else
echo "$COUNT) $OPENSSL at environment variable 'OPENSSL' not found!" echo "* $OPENSSL at environment variable 'OPENSSL' not found!"
fi fi
COUNT=$((COUNT+1))
fi fi
if [ -n "${OPENSSL_LEGACY+set}" ]; then if [ -n "${OPENSSL_LEGACY+set}" ]; then
echo echo
if `hash "$OPENSSL_LEGACY" > /dev/null 2>&1`; then if `hash "$OPENSSL_LEGACY" > /dev/null 2>&1`; then
echo "$COUNT) $OPENSSL_LEGACY at environment variable 'OPENSSL_LEGACY':" echo "* $OPENSSL_LEGACY at environment variable 'OPENSSL_LEGACY':"
$OPENSSL_LEGACY version $OPENSSL_LEGACY version
else else
echo "$COUNT) $OPENSSL_LEGACY at environment variable 'OPENSSL_LEGACY' not found!" echo "* $OPENSSL_LEGACY at environment variable 'OPENSSL_LEGACY' not found!"
fi fi
COUNT=$((COUNT+1))
fi fi
echo echo
if `hash gnutls-cli > /dev/null 2>&1`; then if `hash gnutls-cli > /dev/null 2>&1`; then
echo "$COUNT) gnuTLS client:" echo "* gnuTLS client:"
gnutls-cli --version | head -n 1 gnutls-cli --version | head -n 1
else else
echo "$COUNT) gnuTLS client not found!" echo "* gnuTLS client not found!"
fi fi
COUNT=$((COUNT+1))
echo echo
if `hash gnutls-serv > /dev/null 2>&1`; then if `hash gnutls-serv > /dev/null 2>&1`; then
echo "$COUNT) gnuTLS server:" echo "* gnuTLS server:"
gnutls-serv --version | head -n 1 gnutls-serv --version | head -n 1
else else
echo "$COUNT) gnuTLS server not found!" echo "* gnuTLS server not found!"
fi fi
COUNT=$((COUNT+1))
if [ -n "${GNUTLS_CLI+set}" ]; then if [ -n "${GNUTLS_CLI+set}" ]; then
echo echo
if `hash "$GNUTLS_CLI" > /dev/null 2>&1`; then if `hash "$GNUTLS_CLI" > /dev/null 2>&1`; then
echo "$COUNT) $GNUTLS_CLI at environment variable 'GNUTLS_CLI':" echo "* $GNUTLS_CLI at environment variable 'GNUTLS_CLI':"
$GNUTLS_CLI --version | head -n 1 $GNUTLS_CLI --version | head -n 1
else else
echo "$COUNT) $GNUTLS_CLI at environment variable 'GNUTLS_CLI' not found!" echo "* $GNUTLS_CLI at environment variable 'GNUTLS_CLI' not found!"
fi fi
COUNT=$((COUNT+1))
fi fi
if [ -n "${GNUTLS_SERV+set}" ]; then if [ -n "${GNUTLS_SERV+set}" ]; then
echo echo
if `hash "$GNUTLS_SERV" > /dev/null 2>&1`; then if `hash "$GNUTLS_SERV" > /dev/null 2>&1`; then
echo "$COUNT) $GNUTLS_SERV at environment variable 'GNUTLS_SERV':" echo "* $GNUTLS_SERV at environment variable 'GNUTLS_SERV':"
$GNUTLS_SERV --version | head -n 1 $GNUTLS_SERV --version | head -n 1
else else
echo "$COUNT) $GNUTLS_SERV at environment variable 'GNUTLS_SERV' not found!" echo "* $GNUTLS_SERV at environment variable 'GNUTLS_SERV' not found!"
fi fi
COUNT=$((COUNT+1))
fi fi
if [ -n "${GNUTLS_LEGACY_CLI+set}" ]; then if [ -n "${GNUTLS_LEGACY_CLI+set}" ]; then
echo echo
if `hash "$GNUTLS_LEGACY_CLI" > /dev/null 2>&1`; then if `hash "$GNUTLS_LEGACY_CLI" > /dev/null 2>&1`; then
echo "$COUNT) $GNUTLS_LEGACY_CLI at environment variable 'GNUTLS_LEGACY_CLI':" echo "* $GNUTLS_LEGACY_CLI at environment variable 'GNUTLS_LEGACY_CLI':"
$GNUTLS_LEGACY_CLI --version | head -n 1 $GNUTLS_LEGACY_CLI --version | head -n 1
else else
echo "$COUNT) $GNUTLS_LEGACY_CLI at environment variable 'GNUTLS_LEGACY_CLI' not found!" echo "* $GNUTLS_LEGACY_CLI at environment variable 'GNUTLS_LEGACY_CLI' not found!"
fi fi
COUNT=$((COUNT+1))
fi fi
if [ -n "${GNUTLS_LEGACY_SERV+set}" ]; then if [ -n "${GNUTLS_LEGACY_SERV+set}" ]; then
echo echo
if `hash "$GNUTLS_LEGACY_SERV" > /dev/null 2>&1`; then if `hash "$GNUTLS_LEGACY_SERV" > /dev/null 2>&1`; then
echo "$COUNT) $GNUTLS_LEGACY_SERV at environment variable 'GNUTLS_LEGACY_SERV':" echo "* $GNUTLS_LEGACY_SERV at environment variable 'GNUTLS_LEGACY_SERV':"
$GNUTLS_LEGACY_SERV --version | head -n 1 $GNUTLS_LEGACY_SERV --version | head -n 1
else else
echo "$COUNT) $GNUTLS_LEGACY_SERV at environment variable 'GNUTLS_LEGACY_SERV' not found!" echo "* $GNUTLS_LEGACY_SERV at environment variable 'GNUTLS_LEGACY_SERV' not found!"
fi fi
COUNT=$((COUNT+1))
fi fi
echo echo
if `hash dpkg > /dev/null 2>&1`; then if `hash dpkg > /dev/null 2>&1`; then
echo "$COUNT) asan:" echo "* asan:"
dpkg -s libasan2 2> /dev/null | grep -i version dpkg -s libasan2 2> /dev/null | grep -i version
dpkg -s libasan1 2> /dev/null | grep -i version dpkg -s libasan1 2> /dev/null | grep -i version
dpkg -s libasan0 2> /dev/null | grep -i version dpkg -s libasan0 2> /dev/null | grep -i version
else else
echo "$COUNT) No dpkg present: can't determine asan version!" echo "* No dpkg present: can't determine asan version!"
fi fi
echo echo