|
From: Martin G. <sou...@gl...> - 2003-12-23 07:25:25
|
On December 17, 2003 06:40 am, hzu...@ra... wrote:
> You're right. Good job !
> Can you send us a patch?
Didn't get a chance to look at this again until today, and in the latest
build, I didn't have the same problem, although this function hasn't changed.
I checked a bit further and it looks like these directories should have been
created already in the create_cd_dirs script, called during prepare. As this
was the case before the latest udate, I don't know why it wasn't working the
first time round?
Maybe just something to keep a lookout for in future?
Martin
> 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?
|