From c5caadac8b48092c758971d26c4094eca6f7f115 Mon Sep 17 00:00:00 2001 From: George Danchev Date: Tue, 5 Jul 2011 10:53:18 +0000 Subject: [PATCH] drop CC_FLAGS and check for codesamples emptiness --- releng/releng_cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/releng/releng_cxx b/releng/releng_cxx index ba3488be..6be7e6c5 100755 --- a/releng/releng_cxx +++ b/releng/releng_cxx @@ -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