Made releng/auto_cxx ready for FreeBSD (with bash or "bash" linked to /bin/sh)
This commit is contained in:
parent
306af71d95
commit
9a473ac931
@ -50,12 +50,12 @@ 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} -I../ -L ../libisoburn/.libs/ -lisoburn -o ${SMPL}.obj ${SMPL}"
|
CMD_CPL="${CC} -I../ -L ../libisoburn/.libs/ ${CFLAGS} -lisoburn -o ${SMPL}.obj ${SMPL}"
|
||||||
printf "${SELF}: ${CMD_CPL}\n"
|
printf "${SELF}: ${CMD_CPL}\n"
|
||||||
set +e
|
set +e
|
||||||
${CMD_CPL}
|
${CMD_CPL}
|
||||||
RET_CPL="$?"
|
RET_CPL="$?"
|
||||||
if [ ${RET_CPL} == 0 -a -f ${SMPL}.obj ]; then
|
if [ ${RET_CPL} = 0 -a -f ${SMPL}.obj ]; then
|
||||||
mv ${SMPL}.obj ${GEN_DATA_DIR}
|
mv ${SMPL}.obj ${GEN_DATA_DIR}
|
||||||
else
|
else
|
||||||
printf "\nFAIL : ${SELF}: Compilation of ${SMPL}\n"
|
printf "\nFAIL : ${SELF}: Compilation of ${SMPL}\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user