From 2cce47a6444eb5d4d730cfae03a54799e807bad4 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 29 Dec 2016 20:03:08 +0100 Subject: [PATCH] Create the parent directory before creating the target file Fixes building with OBJDIR. --- doc/scripts/pkgconfig.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/scripts/pkgconfig.sh b/doc/scripts/pkgconfig.sh index 83479f5..898202e 100755 --- a/doc/scripts/pkgconfig.sh +++ b/doc/scripts/pkgconfig.sh @@ -148,6 +148,7 @@ while [ $# -gt 0 ]; do #create source="${target#$OBJDIR}" source="${source}.in" + $DEBUG $MKDIR -- "${target%/*}" || exit 2 $DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;" \ -e "s;@VERSION@;$VERSION;" \ -e "s;@PREFIX@;$PREFIX;" \