X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fclam%2Fcpp%2Fpostconditions.sh;fp=scripts%2Fclam%2Fcpp%2Fpostconditions.sh;h=1c1490bf82e6e544903d409f52277444c20024ad;hb=8cae6bcb0a4c8962c18d50f7323558dddf299b2f;hp=90e96578c04d2e2d02d094022f86152b75216e85;hpb=d7945be1d3e1c49781c6121d978e9c9d4d52f617;p=feisty_meow.git diff --git a/scripts/clam/cpp/postconditions.sh b/scripts/clam/cpp/postconditions.sh index 90e96578..1c1490bf 100755 --- a/scripts/clam/cpp/postconditions.sh +++ b/scripts/clam/cpp/postconditions.sh @@ -25,13 +25,13 @@ for i in *.resources; do rm -f "$i"; done # causes the shell to quit. DIE="source $CLAM_DIR/exit_make.sh" -if [ ! -d $TARGETS_DIR ]; then mkdir $TARGETS_DIR; fi +if [ ! -d $TARGETS_DIR ]; then mkdir -p $TARGETS_DIR; fi if [ "$TYPE" = "library" ]; then # make sure the required directories exist. - if [ ! -d $STATIC_LIBRARY_DIR ]; then mkdir $STATIC_LIBRARY_DIR; fi - if [ ! -d $DYNAMIC_LIBRARY_DIR ]; then mkdir $DYNAMIC_LIBRARY_DIR; fi + if [ ! -d $STATIC_LIBRARY_DIR ]; then mkdir -p $STATIC_LIBRARY_DIR; fi + if [ ! -d $DYNAMIC_LIBRARY_DIR ]; then mkdir -p $DYNAMIC_LIBRARY_DIR; fi elif [[ "$TYPE" == "application" || "$TYPE" == "test" ]]; then @@ -39,7 +39,7 @@ elif [[ "$TYPE" == "application" || "$TYPE" == "test" ]]; then # this project's final directory. # first make sure the executable directory is around. - if [ ! -d $EXECUTABLE_DIR ]; then mkdir $EXECUTABLE_DIR; fi + if [ ! -d $EXECUTABLE_DIR ]; then mkdir -p $EXECUTABLE_DIR; fi if [ -z "$NO_COMPILE" ]; then # we ensure that none of the normal products are copied for a non-compiling