From 1b8e4d409bed4efe4c103f6de74b7cdb6b1d9635 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 12 Nov 2014 21:21:57 +0100 Subject: [PATCH] Newer version of the script upstream --- doc/gtkdoc.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/gtkdoc.sh b/doc/gtkdoc.sh index f17057d..aab0685 100755 --- a/doc/gtkdoc.sh +++ b/doc/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" \