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
|
KEEP=0
|
||||||
SAMPLE_CODE_DIR=codesamples
|
SAMPLE_CODE_DIR=codesamples
|
||||||
CC=g++
|
CC=g++
|
||||||
CC_FLAFS=" -I ../libisoburn -L ../libisoburn/.libs/ -lisoburn "
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
print_help() {
|
print_help() {
|
||||||
@ -78,9 +77,9 @@ if ! which "${CC}" >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# process sample code tests
|
# 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
|
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"
|
printf "\n${SELF}: ${CMD_CPL}\n"
|
||||||
set +e
|
set +e
|
||||||
${CMD_CPL}
|
${CMD_CPL}
|
||||||
@ -108,9 +107,9 @@ if test -f "${SAMPLE_CODE_DIR}"/*.cpp; then
|
|||||||
esac
|
esac
|
||||||
set -e
|
set -e
|
||||||
done
|
done
|
||||||
else
|
#else
|
||||||
printf "\n${SELF}: No C++ code samples found in ${SAMPLE_CODE_DIR}\n"
|
# printf "\n${SELF}: No C++ code samples found in ${SAMPLE_CODE_DIR}\n"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# clean
|
# clean
|
||||||
cleanup
|
cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user