create dir if needed
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 13 Mar 2008 20:31:06 +0000 (20:31 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 13 Mar 2008 20:31:06 +0000 (20:31 +0000)
vbuild-nightly.sh

index 1941dee..69d657b 100755 (executable)
@@ -94,6 +94,7 @@ EOF
 function failure() {
     set -x
     WEBLOG=${WEBPATH}/${BASE}.log.txt
+    mkdir -p ${WEBPATH}
     cp $LOG ${WEBLOG}
     summary $LOG >> ${WEBLOG}
     (echo -n "============================== $COMMAND: failure at " ; date ; tail -c 20k $WEBLOG) > ${WEBLOG}.ko
@@ -106,6 +107,7 @@ function failure() {
 function success () {
     set -x
     WEBLOG=${WEBPATH}/${BASE}.log.txt
+    mkdir -p ${WEBPATH}
     cp $LOG ${WEBLOG}
     summary $LOG >> ${WEBLOG}
     touch ${WEBLOG}.ok