From 2e4ce80eac6a334097a3d6efb03a0918feb6a0a0 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 31 Oct 2014 02:55:56 +0100 Subject: [PATCH] Added support for OBJDIR --- doc/scripts/pkgconfig.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/scripts/pkgconfig.sh b/doc/scripts/pkgconfig.sh index bc2bebc..95a0ac9 100755 --- a/doc/scripts/pkgconfig.sh +++ b/doc/scripts/pkgconfig.sh @@ -119,8 +119,9 @@ while [ $# -gt 0 ]; do #install if [ "$install" -eq 1 ]; then + source="${target#$OBJDIR}" $DEBUG $MKDIR -- "$PKGCONFIG" || exit 2 - $DEBUG $INSTALL "$target" "$PKGCONFIG/$target" || exit 2 + $DEBUG $INSTALL "$target" "$PKGCONFIG/$source" || exit 2 continue fi @@ -139,11 +140,13 @@ while [ $# -gt 0 ]; do fi #create + source="${target#$OBJDIR}" + source="${source}.in" $DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;" \ -e "s;@VERSION@;$VERSION;" \ -e "s;@PREFIX@;$PREFIX;" \ -e "s;@RPATH@;$RPATH;" \ - -- "$target.in" > "$target" + -- "$source" > "$target" if [ $? -ne 0 ]; then $DEBUG $RM -- "$target" exit 2