[PATCH] do_it: Create build directory and its parents for Nano-X
Gedare Bloom
gedare at rtems.org
Sun Oct 19 12:55:56 UTC 2014
Committed, thanks.
On Fri, Oct 17, 2014 at 4:17 AM, Jan Dolezal <dolezj21 at fel.cvut.cz> wrote:
> 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