drop CC_FLAGS and check for codesamples emptiness

This commit is contained in:
George Danchev 2011-07-05 10:53:18 +00:00
parent 721dd08609
commit c5caadac8b

View File

@ -8,7 +8,6 @@ GEN_DATA_DIR=releng_generated_data/${SELF}
KEEP=0
SAMPLE_CODE_DIR=codesamples
CC=g++
CC_FLAFS=" -I ../libisoburn -L ../libisoburn/.libs/ -lisoburn "
#####################################################################
print_help() {
@ -78,9 +77,9 @@ if ! which "${CC}" >/dev/null 2>&1; then
fi
# process sample code tests
if test -f "${SAMPLE_CODE_DIR}"/*.cpp; then
# if test -f "${SAMPLE_CODE_DIR}"/*.cpp; then
for SMPL in `ls "${SAMPLE_CODE_DIR}"/*.cpp`; do
CMD_CPL="${CC} ${CC_FLAGS} -o ${SMPL}.obj ${SMPL}"
CMD_CPL="${CC} -I../ -L ../libisoburn/.libs/ -lisoburn -o ${SMPL}.obj ${SMPL}"
printf "\n${SELF}: ${CMD_CPL}\n"
set +e
${CMD_CPL}
@ -108,9 +107,9 @@ if test -f "${SAMPLE_CODE_DIR}"/*.cpp; then
esac
set -e
done
else
printf "\n${SELF}: No C++ code samples found in ${SAMPLE_CODE_DIR}\n"
fi
#else
# printf "\n${SELF}: No C++ code samples found in ${SAMPLE_CODE_DIR}\n"
#fi
# clean
cleanup