[PATCH] do_it: Create build directory and its parents for Nano-X

Jan Dolezal dolezj21 at fel.cvut.cz
Fri Oct 17 08:17:24 UTC 2014


prevents possible mkdir and cd error when parents of build
directory are missing
---
 do_it | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/do_it b/do_it
index 616e192..604219e 100755
--- a/do_it
+++ b/do_it
@@ -418,10 +418,10 @@ fi
 j_nanox()
 {
   if [ ! -d ${BUILDDIR}/${NANOX}/src ] ; then
-    mkdir ${BUILDDIR}/${NANOX}/src
+    mkdir -p ${BUILDDIR}/${NANOX}/src
   else
     rm -r ${BUILDDIR}/${NANOX}/src
-    mkdir ${BUILDDIR}/${NANOX}/src
+    mkdir -p ${BUILDDIR}/${NANOX}/src
   fi
   cd ${BUILDDIR}/${NANOX}/src
 
-- 
1.9.1



More information about the devel mailing list