From fd3e628984877348dbc5ed52559201d21e8162c3 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 29 Dec 2016 20:11:20 +0100 Subject: [PATCH] Create the parent directory before creating the target file Fixes building with OBJDIR. --- doc/scripts/subst.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/scripts/subst.sh b/doc/scripts/subst.sh index 3682a68..7f60bf4 100755 --- a/doc/scripts/subst.sh +++ b/doc/scripts/subst.sh @@ -112,6 +112,8 @@ _subst() #create source="${target#$OBJDIR}" source="${source}.in" + ([ -z "$OBJDIR" ] || $DEBUG $MKDIR -- "${target%/*}") \ + || return 2 $DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;g" \ -e "s;@VERSION@;$VERSION;g" \ -e "s;@PREFIX@;$PREFIX;g" \