[rtems-graphics-toolkit commit] do_it: Create build directory and its parents for Nano-X
Gedare Bloom
gedare at rtems.org
Sun Oct 19 12:46:17 UTC 2014
Module: rtems-graphics-toolkit
Branch: master
Commit: 8882c040cfde789beaee893ed1ddfeec80be7a2f
Changeset: http://git.rtems.org/rtems-graphics-toolkit/commit/?id=8882c040cfde789beaee893ed1ddfeec80be7a2f
Author: Jan Dolezal <dolezj21 at fel.cvut.cz>
Date: Fri Oct 17 10:17:24 2014 +0200
do_it: Create build directory and its parents for Nano-X
prevents possible mkdir and cd error when parents of build
directory are missing
---
do_it | 4 ++--
1 files 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
More information about the vc
mailing list