texi2html: Add check for directory existence
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Oct 2012 13:54:01 +0000 (13:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Oct 2012 11:13:45 +0000 (12:13 +0100)
Without this, if configure fails, it won't be able to run again as the directory
already exists.

(From OE-Core rev: 71a3ba536d022eea3a199cf4d6c5c791d91603a0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/texi2html/texi2html_5.0.bb

index 4b220f5..f168416 100644 (file)
@@ -16,7 +16,9 @@ inherit autotools gettext
 
 do_configure_prepend() {
        # Make a directory for the old gettext setup
-       mkdir ${S}/po
+       if [ ! -d ${S}/po ]; then
+               mkdir ${S}/po
+       fi
 }
 
 do_configure_append() {