[oe-commits] Richard Purdie : texi2html: Add check for directory existence

git at git.openembedded.org git at git.openembedded.org
Thu Oct 18 11:15:14 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 71a3ba536d022eea3a199cf4d6c5c791d91603a0
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=71a3ba536d022eea3a199cf4d6c5c791d91603a0

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Oct 17 13:54:01 2012 +0000

texi2html: Add check for directory existence

Without this, if configure fails, it won't be able to run again as the directory
already exists.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-extended/texi2html/texi2html_5.0.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-extended/texi2html/texi2html_5.0.bb b/meta/recipes-extended/texi2html/texi2html_5.0.bb
index 4b220f5..f168416 100644
--- a/meta/recipes-extended/texi2html/texi2html_5.0.bb
+++ b/meta/recipes-extended/texi2html/texi2html_5.0.bb
@@ -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() {





More information about the Openembedded-commits mailing list