build: fixed destination name for pc_files
authorAndrew Tridgell <tridge@samba.org>
Sat, 27 Mar 2010 07:25:20 +0000 (18:25 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:10 +0000 (20:27 +1000)
buildtools/wafsamba/wafsamba.py

index 03be97f29930fac25451ceb4f5966aa13d58047e..2a79f702ef694d24070c0887ecae9f4e0b5cde9e 100644 (file)
@@ -701,5 +701,6 @@ def PKG_CONFIG_FILES(bld, pc_files):
     dest = '${PKGCONFIGDIR}'
     dest = bld.EXPAND_VARIABLES(dest)
     for f in TO_LIST(pc_files):
     dest = '${PKGCONFIGDIR}'
     dest = bld.EXPAND_VARIABLES(dest)
     for f in TO_LIST(pc_files):
-        INSTALL_FILES(bld, dest, f+'.in', flat=True, destname=f)
+        INSTALL_FILES(bld, dest, f+'.in', flat=True,
+                      destname=os.path.basename(f))
 Build.BuildContext.PKG_CONFIG_FILES = PKG_CONFIG_FILES
 Build.BuildContext.PKG_CONFIG_FILES = PKG_CONFIG_FILES