Skip to contentSkip to conversation

texi2html: Add check for directory existence

PATCH New Richard Purdie 1 participant 1 message Oct 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 texi2html: Add check for directory existence

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

---

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