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
This commit is contained in:
Tom G. Christensen 2004-05-26 09:27:06 +00:00
parent 152a6acd21
commit c6b27e50fe

View File

@ -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