Minor code fixes
Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Two files touched by this patch: RecPython.py to work around a crash when PKGNAME=. libtool.aap to fix linking (libs should follow ltlibs) and to make uninstalled libtools things work doubly well :) -- Adriaan de Groot adridg-FlD2LfDziEhmR6Xm/[email protected] Kamer A6020 024-3652272 GPG Key Fingerprint 934E 31AA 80A7 723F 54F9 50ED 76AC EE01 FEA2 A3FE http://www.cs.kun.nl/~adridg/research/
diffs.diff
(text/plain, 1.7 KB)
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 16 Oct 2003 21:57:11 -0000
@@ -1003,7 +1005,8 @@ def install_files(desttail, source, mode
msg_info(recdict, _('Skip create directory "%s"') % destloc)
else:
msg_info(recdict, _('Creating directory "%s"') % destloc)
- os.makedirs(destloc)
+ if not os.path.isdir(destloc):
+ os.makedirs(destloc)
if item.get("keepmode"):
newmode = -1
In many places a Python expression can be used. For example, the
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 16 Oct 2003 21:57:12 -0000
@@ -92,12 +91,14 @@ _top.INSTALL_LTLIB = ""
# attribute to select to build a program with libtool or without.
:action build ltexe default
:sys $LIBTOOL --silent --mode=link --tag=CXX
- g++ -o $target $source $LDFLAGS $?LIBS $?LTLIBS
+ g++ -o $target $source $LDFLAGS $?LTLIBS $?LIBS
# :do installtlib
:action installltlib default
@for i in var2dictlist(source):
+ @if not i.get("installvar"):
+ @continue
destltlib = $DESTDIR/$PREFIX/$DLLDIR
@if i.has_key("installdir"):
@destltlib += "/" + i["installdir"] + "/"