From c6b27e50feff6994194ab25d1a5b771e40fb89c7 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Wed, 26 May 2004 09:27:06 +0000 Subject: [PATCH] Make doc function handle parameters with wildcards in them. Using tar the way it's currently done is kinda ugly... Fix _docdir default location to $prefix/share/doc instead of $prefix/doc --- buildpkg.functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/buildpkg.functions b/buildpkg.functions index 8643601..b7fd2a3 100644 --- a/buildpkg.functions +++ b/buildpkg.functions @@ -87,7 +87,7 @@ prefix=$topinstalldir configure_args='--prefix=$prefix --disable-nls' # Docdir relative to $prefix -_docdir=doc +_docdir=share/doc # Other relative dirs _bindir=bin _libdir=lib @@ -366,6 +366,7 @@ fix_man() # Copies files from $srcdir to $_docdir/$topdir-$version doc() { + local f if [ ! -z $# ]; then setdir source if [ "$shortroot" -eq 1 ]; then @@ -377,7 +378,10 @@ doc() echo "Adding docs" until [ -z "$1" ] do - ($TAR -cf - "$1")|(cd $_docdir; tar -xvBpf -) + for f in $(_upls $1) + do + ($TAR -cf - "$f")|(cd $_docdir; $TAR -xvBpf -) + done shift done fi