On Tue, Apr 27, 2010 at 11:00:11PM -0400, Daniel Macks wrote:
> On Tue, Apr 27, 2010 at 03:35:06PM -0400, Jack Howarth wrote:
> >
> > # Rename info files with -fsf-4.5 suffix.
>  ># Add symlinks for info files under old names.
> > SplitOff2: <<
> >   Package: %N-compiler
> >   Files: <<
> >     share/info/*-fsf-4.5.info
> >   <<
> > <<
> > InfoDocs: cp-tools-fsf-4.5.info cpp-fsf-4.5.info cppinternals-fsf-4.5.info 
> > gcc-fsf-4.5.info gccinstall-fsf-4.5.info gccint-fsf-4.5.info 
> > gcj-fsf-4.5.info gfortran-fsf-4.5.info libgomp-fsf-4.5.info
> 
> I'm not sure there is a use in having *-fsf-4.5.info files. They are
> not indexed and generally visible unless the gcc4x package is
> installed (InfoDocs entries). And although they can be accessed if you
> know their special name, they contain hyperlinks to each other that do
> not know about these special names (for example, a link in gcj-fsf-4.5
> for "gcc" likely points to gcc not gcc-fsf-4.5). Instead, you could
> put all the files *with their original filenames* (so xref's don't
> break) in a directory named for the package. For example,
> %p/lib/gcc4.5/info (living in the -compilers splitoff package). The
> xrefs would resolve self-consistently among this specific gcc version
> because they are pointing to the correct filename "in the same
> directory". Bonus: you can just change --infodir= instead of having to
> do a manual loop over all the filenames to move them.

Bonuser: two fewer places you have to enumerate actual filenames
(fewer things to deal with manually). --infodir means you omit this:

 # Rename info files with -fsf-4.5 suffix.

and this:

 # Add symlinks for info files under old names.
 infofiles="cpp gcc"
 for infofile in $infofiles ; do
   ln -s %p/share/info/$infofile-fsf-4.5.info %i/share/info/$infofile-4.info
 done
 infofiles="cp-tools cppinternals gccinstall gccint gcj gfortran libgomp"
 for infofile in $infofiles ; do
   ln -s %p/share/info/$infofile-fsf-4.5.info %i/share/info/$infofile.info
 done

becomes something like this:

 # Add symlinks for info files under old location.
 mkdir %i/share/info
 for infofile in `cd %i/lib/gcc4.5/info; ls`; do
   ln -s %p/lib/gcc4.5/info/$infofile %i/share/info/$infofile
 done

dan

-- 
Daniel Macks
dma...@netspace.org
http://www.netspace.org/~dmacks


------------------------------------------------------------------------------
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to