From a2583b105b3ca8a66f03250544dad03ea85c8fa3 Mon Sep 17 00:00:00 2001 From: George Danchev Date: Tue, 19 Jul 2011 16:51:51 +0000 Subject: [PATCH] postpone creation of self data dir, until compiler is checked first --- libisoburn/trunk/releng/auto_cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libisoburn/trunk/releng/auto_cxx b/libisoburn/trunk/releng/auto_cxx index 685150d4..8dba74b6 100755 --- a/libisoburn/trunk/releng/auto_cxx +++ b/libisoburn/trunk/releng/auto_cxx @@ -25,20 +25,20 @@ fi SAMPLE_CODE_DIR=codesamples CC=g++ -# check data dir -if [ -d "${GEN_DATA_DIR}" ]; then - printf "\n${SELF}: directory %s exists!" ${GEN_DATA_DIR} - printf "\n${SELF}: use '${SELF} -c' to remove.\n" - exit 5 -else - mkdir "${GEN_DATA_DIR}" -fi - # check compiler if ! which "${CC}" >/dev/null 2>&1; then printf "\n${SELF}: Not found: ${CC}. Install ${CC}.\n" cleanup - exit 6 + exit 5 +fi + +# check data dir +if [ -d "${GEN_DATA_DIR}" ]; then + printf "\n${SELF}: directory %s exists!" ${GEN_DATA_DIR} + printf "\n${SELF}: use '${SELF} -c' to remove.\n" + exit 6 +else + mkdir "${GEN_DATA_DIR}" fi # process sample code tests