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
_______________________________________________
devel mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/devel