From 32e1ce42815db9252b000563f2e74f527d054e23 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 12 Nov 2014 03:39:53 +0100 Subject: [PATCH] No longer create useless directories --- doc/scripts/gtkdoc.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/scripts/gtkdoc.sh b/doc/scripts/gtkdoc.sh index f17057d..aab0685 100755 --- a/doc/scripts/gtkdoc.sh +++ b/doc/scripts/gtkdoc.sh @@ -151,8 +151,10 @@ while [ $# -gt 0 ]; do ;; gtkdoc/sgml.stamp) output="xml" - [ -n "$OBJDIR" ] && output="${OBJDIR}gtkdoc/xml" - $DEBUG $MKDIR -- "$output" || exit 2 + if [ -n "$OBJDIR" ]; then + output="${OBJDIR}gtkdoc/xml" + $DEBUG $MKDIR -- "$output" || exit 2 + fi (cd "${OBJDIR}gtkdoc" && $DEBUG $GTKDOC_MKDB \ --module="$MODULE" \ @@ -162,8 +164,10 @@ while [ $# -gt 0 ]; do ;; gtkdoc/tmpl.stamp) output="tmpl" - [ -n "$OBJDIR" ] && output="${OBJDIR}gtkdoc/tmpl" - $DEBUG $MKDIR -- "$output" || exit 2 + if [ -n "$OBJDIR" ]; then + output="${OBJDIR}gtkdoc/tmpl" + $DEBUG $MKDIR -- "$output" || exit 2 + fi (cd "${OBJDIR}gtkdoc" && $DEBUG $GTKDOC_MKTMPL \ --module="$MODULE" \