mail[Wesnoth-commits] r25341 - /trunk/SConstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by loonycyborg on March 30, 2008 - 21:14:
Author: loonycyborg
Date: Sun Mar 30 21:14:12 2008
New Revision: 25341

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25341&view=rev
Log:
Made scons recipe uninstall man pages during "scons uninstall".

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=25341&r1=25340&r2=25341&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sun Mar 30 21:14:12 2008
@@ -986,10 +986,12 @@
     clientside_env.Install(os.path.join(mandir, "man6"), 
"doc/man/wesnoth_editor.6"),
     ])
 # Localized man pages
+localized_man_dirs = []
 for lang in filter(CopyFilter, os.listdir("doc/man")):
      sourcedir = os.path.join("doc/man", lang)
      if os.path.isdir(sourcedir):
           targetdir = os.path.join(mandir, lang, "man6")
+          localized_man_dirs.append(targetdir)
           env.Alias('install-clientside', 
                     clientside_env.Install(targetdir, [
                                       os.path.join(sourcedir, "wesnoth.6"),
@@ -1049,7 +1051,9 @@
 # Un-installation
 #
 deletions = map(lambda x: Delete(os.path.join(bindir, str(x[0]))), 
clientside + daemons) \
-            + [Delete(datadir), Delete(pythonlib), Delete(fifodir)]
+            + [Delete(datadir), Delete(pythonlib), Delete(fifodir)] \
+            + map(lambda x: Delete(os.path.join(mandir, "man6", x)), [ 
"wesnoth.6", "wesnoth_editor.6" ]) \
+            + Flatten(map(lambda mandir : map(lambda x: 
Delete(os.path.join(mandir, x)), [ "wesnoth.6", "wesnoth_editor.6" ]), 
localized_man_dirs))
 uninstall = env.Command('uninstall', '', deletions)
 env.AlwaysBuild(uninstall)
 env.Precious(uninstall)




Related Messages


Powered by MHonArc, Updated Sun Mar 30 22:02:16 2008