SF.net SVN: geany-plugins:[428] trunk/wscript

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Feb 2 20:16:44 UTC 2009


Revision: 428
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=428&view=rev
Author:   eht16
Date:     2009-02-02 20:16:44 +0000 (Mon, 02 Feb 2009)

Log Message:
-----------
Fix typo in the generated Makefile.
Install plugin documentation files (README, ChangeLog, ...).

Modified Paths:
--------------
    trunk/wscript

Modified: trunk/wscript
===================================================================
--- trunk/wscript	2009-02-02 20:02:45 UTC (rev 427)
+++ trunk/wscript	2009-02-02 20:16:44 UTC (rev 428)
@@ -127,15 +127,15 @@
 	@./waf --update-po
 
 install:
-	@if test -n "\$(DESTDIR)"; then \\
-		./waf install --destdir="\$(DESTDIR)"; \\
+	@if test -n "$(DESTDIR)"; then \\
+		./waf install --destdir="$(DESTDIR)"; \\
 	else \\
 		./waf install; \\
 	fi;
 
 uninstall:
-	@if test -n "\$(DESTDIR)"; then \\
-		./waf uninstall --destdir="\$(DESTDIR)"; \\
+	@if test -n "$(DESTDIR)"; then \\
+		./waf uninstall --destdir="$(DESTDIR)"; \\
 	else \\
 		./waf uninstall; \\
 	fi;
@@ -323,6 +323,12 @@
 			uselib		= libs
 		)
 
+	def install_docs(bld, pname, files):
+		for file in files:
+			if os.path.exists(os.path.join(p.name, file)):
+				bld.install_files('${DATADIR}/doc/geany-plugins/%s' % pname, '%s/%s' % (pname, file))
+
+
 	# Build the plugins
 	bld.env['shlib_PATTERN']    = '%s.so'
 	for p in plugins:
@@ -357,6 +363,7 @@
 				podir		= os.path.join(p.name, 'po'),
 				appname		= p.name
 			)
+		install_docs(bld, p.name, 'AUTHORS ChangeLog COPYING NEWS README THANKS TODO'.split())
 
 
 def init():


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list