From d233b6cee8ee5e5bf29d693a329def056378b845 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 6 Oct 2015 18:24:44 +0200 Subject: [PATCH] Support installing targets from sub-directories --- doc/scripts/pkgconfig.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/scripts/pkgconfig.sh b/doc/scripts/pkgconfig.sh index 3838c64..83479f5 100755 --- a/doc/scripts/pkgconfig.sh +++ b/doc/scripts/pkgconfig.sh @@ -123,7 +123,11 @@ while [ $# -gt 0 ]; do if [ "$install" -eq 1 ]; then source="${target#$OBJDIR}" $DEBUG $MKDIR -- "$PKGCONFIG" || exit 2 - $DEBUG $INSTALL "$target" "$PKGCONFIG/$source" || exit 2 + basename="$source" + if [ "${source##*/}" != "$source" ]; then + basename="${source##*/}" + fi + $DEBUG $INSTALL "$target" "$PKGCONFIG/$basename"|| exit 2 continue fi