Clean up comments and output messages

This commit is contained in:
Erik Schnetter 2016-04-04 16:00:09 -04:00
parent 83d6e04d39
commit 0ff059e388

11
lib/spack/env/cc vendored
View File

@ -50,7 +50,7 @@ SPACK_SHORT_SPEC"
# The compiler input variables are checked for sanity later: # The compiler input variables are checked for sanity later:
# SPACK_CC, SPACK_CXX, SPACK_F77, SPACK_FC # SPACK_CC, SPACK_CXX, SPACK_F77, SPACK_FC
# Debug flag is optional; set to true for debug logging: # Debug flag is optional; set to "TRUE" for debug logging:
# SPACK_DEBUG # SPACK_DEBUG
# Test command is used to unit test the compiler script. # Test command is used to unit test the compiler script.
# SPACK_TEST_COMMAND # SPACK_TEST_COMMAND
@ -66,11 +66,10 @@ function die {
for param in $parameters; do for param in $parameters; do
if [[ -z ${!param} ]]; then if [[ -z ${!param} ]]; then
die "Spack compiler must be run from spack! Input $param was missing!" die "Spack compiler must be run from Apack! Input '$param' is missing."
fi fi
done done
#
# Figure out the type of compiler, the language, and the mode so that # Figure out the type of compiler, the language, and the mode so that
# the compiler script knows what to do. # the compiler script knows what to do.
# #
@ -78,12 +77,12 @@ done
# 'command' is set based on the input command to $SPACK_[CC|CXX|F77|F90] # 'command' is set based on the input command to $SPACK_[CC|CXX|F77|F90]
# #
# 'mode' is set to one of: # 'mode' is set to one of:
# vcheck version check
# cpp preprocess # cpp preprocess
# cc compile # cc compile
# as assemble # as assemble
# ld link # ld link
# ccld compile & link # ccld compile & link
# vcheck version check
command=$(basename "$0") command=$(basename "$0")
case "$command" in case "$command" in
@ -114,8 +113,8 @@ case "$command" in
;; ;;
esac esac
# If any of the arguments below is present then the mode is vcheck. In # If any of the arguments below are present, then the mode is vcheck.
# vcheck mode, nothing is added in terms of extra search paths or # In vcheck mode, nothing is added in terms of extra search paths or
# libraries. # libraries.
if [[ -z $mode ]]; then if [[ -z $mode ]]; then
for arg in "$@"; do for arg in "$@"; do