drop CC_FLAGS and check for codesamples emptiness
This commit is contained in:
parent
c91c15dcca
commit
42e8c6daa0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user