adding {noinstall} to ltlibs (and others)

Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
The attached patch (named libtool.diff, but it's for RecPython.py and 
libtool.aap) adds support for a {noinstall} attribute. See, it _can_ be 
useful to have a :ltlib that isn't installed - for support code internal to 
an application composed of multiple executables, for instance.


oh, and yes, i know i need to document this some time.

-- 
pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]>
            If the door is ajar, can we fill it with door-jamb?
libtool.diff (text/x-diff, 1.4 KB)
Index: modules/libtool.aap
===================================================================
RCS file: /cvsroot/a-a-p/Exec/modules/libtool.aap,v
retrieving revision 1.3
diff -u -3 -p -r1.3 libtool.aap
--- modules/libtool.aap	9 Oct 2003 21:02:10 -0000	1.3
+++ modules/libtool.aap	13 Oct 2003 21:34:09 -0000
@@ -28,7 +28,6 @@ _top.LTOBJSUF = .lo
             @if libtool_ver >= "1.5":
                 @break
             @else:
-                :print $libtool -- bad version
                 libtool_ver=
         @except:
             libtool_ver=
@@ -98,6 +97,8 @@ _top.INSTALL_LTLIB = ""
 # :do installtlib
 :action installltlib default
   @for i in var2dictlist(source):
+      @if i.has_key("noinstall"):
+	  @continue
       destltlib = $DESTDIR/$PREFIX/$DLLDIR
       @if i.has_key("installdir"):
           @destltlib += "/" + i["installdir"] + "/"
Index: RecPython.py
===================================================================
RCS file: /cvsroot/a-a-p/Exec/RecPython.py,v
retrieving revision 1.30
diff -u -3 -p -r1.30 RecPython.py
--- RecPython.py	1 Oct 2003 17:13:07 -0000	1.30
+++ RecPython.py	13 Oct 2003 21:35:29 -0000
@@ -968,6 +968,8 @@ def install_files(desttail, source, mode
         else:
             destloc = dest
 
+	if item.get("noinstall"):
+	    continue
         if item.get("installdir"):
             destloc = os.path.join(destloc, item.get("installdir"))
             if item.get("keepdir"):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.