On 27/09/2007, at 7:27 AM, Alexander Hansen wrote:
On 9/25/07, Philip Lamb <[EMAIL PROTECTED]> wrote:
Is there some other means to allow conditional use of the InfoDocs
field?
You might have to resort to a manual install of the Info files in that case.

OK, for reference for anyone else who might need to do this in future, a line in the package .info file:

InfoDocs: FOO.info BAR.info

is currently (Fink version 0.27.6) approximately equivalent to:

PostInstScript: <<
    if [ -f %p/share/info/dir ]; then
      if [ -f %p/sbin/install-info ]; then
%p/sbin/install-info --infodir=%p/share/info %p/share/info/ FOO.info %p/sbin/install-info --infodir=%p/share/info %p/share/info/ BAR.info
      elif [ -f %p/bootstrap/sbin/install-info ]; then
%p/bootstrap/sbin/install-info --infodir=%p/share/info %p/ share/info/FOO.info %p/bootstrap/sbin/install-info --infodir=%p/share/info %p/ share/info/BAR.info
      fi
    fi
<<
PreRmScript: <<
    if [ -f %p/share/info/dir ]; then
      %p/sbin/install-info --infodir=%p/share/info --remove FOO.info
      %p/sbin/install-info --infodir=%p/share/info --remove BAR.info
    fi
<<

Regards,
Phil.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to