SF.net SVN: geany:[4079] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Aug 13 21:59:33 UTC 2009


Revision: 4079
          http://geany.svn.sourceforge.net/geany/?rev=4079&view=rev
Author:   eht16
Date:     2009-08-13 21:59:33 +0000 (Thu, 13 Aug 2009)

Log Message:
-----------
Add command '--hackingdoc' to create the HTML form of the HACKING file.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-08-13 21:51:06 UTC (rev 4078)
+++ trunk/ChangeLog	2009-08-13 21:59:33 UTC (rev 4079)
@@ -1,3 +1,10 @@
+2009-08-13  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * wscript:
+   Add command '--hackingdoc' to create the HTML form of the 
+   HACKING file.
+
+
 2009-08-12  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>
 
  * po/pt_PT.po, po/LINGUAS:

Modified: trunk/wscript
===================================================================
--- trunk/wscript	2009-08-13 21:51:06 UTC (rev 4078)
+++ trunk/wscript	2009-08-13 21:59:33 UTC (rev 4079)
@@ -304,6 +304,8 @@
 	# Actions
 	opt.add_option('--htmldoc', action='store_true', default=False,
 		help='generate HTML documentation', dest='htmldoc')
+	opt.add_option('--hackingdoc', action='store_true', default=False,
+		help='generate HTML documentation from HACKING file', dest='hackingdoc')
 	opt.add_option('--apidoc', action='store_true', default=False,
 		help='generate API reference documentation', dest='apidoc')
 	opt.add_option('--update-po', action='store_true', default=False,
@@ -535,15 +537,23 @@
 				'doxygen could not be found. Please install the doxygen package.')
 			sys.exit(1)
 
-	if Options.options.htmldoc:
+	if Options.options.htmldoc or Options.options.hackingdoc:
 		# first try rst2html.py as it is the upstream default, fall back to rst2html
 		cmd = Configure.find_program_impl(Build.bld.env, 'rst2html.py')
 		if not cmd:
 			cmd = Configure.find_program_impl(Build.bld.env, 'rst2html')
 		if cmd:
+			if Options.options.hackingdoc:
+				file_in = '../HACKING'
+				file_out = 'hacking.html'
+				msg = 'HACKING HTML'
+			else:
+				file_in = 'geany.txt'
+				file_out = 'geany.html'
+				msg = 'HTML'
 			os.chdir('doc')
-			ret = launch(cmd + ' -stg --stylesheet=geany.css geany.txt geany.html',
-				'Generating HTML documentation')
+			ret = launch(cmd + ' -stg --stylesheet=geany.css %s %s' % (file_in, file_out),
+				'Generating %s documentation' % msg)
 		else:
 			Utils.pprint('RED',
 				'rst2html.py could not be found. Please install the Python docutils package.')


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



More information about the Commits mailing list