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:
parent
152a6acd21
commit
c6b27e50fe
@ -87,7 +87,7 @@ prefix=$topinstalldir
|
|||||||
configure_args='--prefix=$prefix --disable-nls'
|
configure_args='--prefix=$prefix --disable-nls'
|
||||||
|
|
||||||
# Docdir relative to $prefix
|
# Docdir relative to $prefix
|
||||||
_docdir=doc
|
_docdir=share/doc
|
||||||
# Other relative dirs
|
# Other relative dirs
|
||||||
_bindir=bin
|
_bindir=bin
|
||||||
_libdir=lib
|
_libdir=lib
|
||||||
@ -366,6 +366,7 @@ fix_man()
|
|||||||
# Copies files from $srcdir to $_docdir/$topdir-$version
|
# Copies files from $srcdir to $_docdir/$topdir-$version
|
||||||
doc()
|
doc()
|
||||||
{
|
{
|
||||||
|
local f
|
||||||
if [ ! -z $# ]; then
|
if [ ! -z $# ]; then
|
||||||
setdir source
|
setdir source
|
||||||
if [ "$shortroot" -eq 1 ]; then
|
if [ "$shortroot" -eq 1 ]; then
|
||||||
@ -377,7 +378,10 @@ doc()
|
|||||||
echo "Adding docs"
|
echo "Adding docs"
|
||||||
until [ -z "$1" ]
|
until [ -z "$1" ]
|
||||||
do
|
do
|
||||||
($TAR -cf - "$1")|(cd $_docdir; tar -xvBpf -)
|
for f in $(_upls $1)
|
||||||
|
do
|
||||||
|
($TAR -cf - "$f")|(cd $_docdir; $TAR -xvBpf -)
|
||||||
|
done
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user