|
From: <hzu...@ra...> - 2003-12-17 14:00:18
|
You're right. Good job !
Can you send us a patch?
Thanks
Heiko
On 12/17/2003 04:24:13 AM Martin Glazer wrote:
>Hey all
>
>Just came across something strange with respect to the man pages
>created on
>the cdtree - in /usr/share/man
>
>My /usr/share/man/man5 is not a directory, but rather an actual file.
>Happens
>to be the syslog-ng.conf man page.
>
>I think there is a bug in the copy_man function in build/functions
>
>copy_man ()
>{
>BD=$1
>[ -z "$BD" ] && BD=$(pwd)
>for I in 1 2 3 4 5 6 7 8 9
>do
>cp -dp $BD/*.$I $CDDIR/usr/share/man/man$I 2> /dev/null
>cp -dp $BD/*.$I.gz $CDDIR/usr/share/man/man$I 2> /dev/null
>cp -dp $BD/*.$I.bz2 $CDDIR/usr/share/man/man$I 2> /dev/null
>done
>return 0
>}
>
>Correct me if I'm wrong, but if the manX directory does not yet exist
>when
>this script is run, then instead of copying the file into the manX
>directory,
>it will actually copy the file into a file called manX and hence the
>problem
>I am seeing.
>
>This causes a few problems later in the build/install process, but
>nothing
>serious enough to warrent an exit error.
>
>If I am correct, then I would suggest one workaround would be to create
>the
>actual man directories before doing the cp - ie add the following line
>after
>the do
>mkdir -p $CDDIR/usr/share/man/man$I 2>/dev/null
>
>thoughts?
|