conduit r1323 - in trunk: . scripts



Author: jstowers
Date: Sun Feb 17 20:01:06 2008
New Revision: 1323
URL: http://svn.gnome.org/viewvc/conduit?rev=1323&view=rev

Log:
2008-02-18  John Stowers  <john stowers gmail com>

	* NEWS: New icons are NEWS



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/scripts/ChangeLog
   trunk/scripts/maintainer.py

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Sun Feb 17 20:01:06 2008
@@ -1,3 +1,7 @@
+NEW in 0.3.8:
+==============
+* New icons (mejogid)
+
 NEW in 0.3.7:
 ==============
 * Update to the latest versions of our shipped static libraries

Modified: trunk/scripts/maintainer.py
==============================================================================
--- trunk/scripts/maintainer.py	(original)
+++ trunk/scripts/maintainer.py	Sun Feb 17 20:01:06 2008
@@ -103,7 +103,7 @@
 =============
 $translations
 
-Manual Translations:
+Help Manual Translations:
 ====================
 $help_translations
 
@@ -648,10 +648,13 @@
 	f = open ('NEWS', 'r')
 	s = f.read()
 	f.close()
-	start = s.find ('NEW in '+ package_version)
+	start = s.find ('NEW in %s' % package_version)
+	#skip the '========='
 	start = s.find ('\n', start) + 1
+	#go to the next line
 	start = s.find ('\n', start) + 1
-	end = s.find ('NEW in', start) - 1
+	#stop at the last news entry
+	end = s.find ('NEW in %s' % opts.revision, start) - 1
 	return s[start:end]
 
 def create_release_note(tag, template_file):
@@ -896,6 +899,10 @@
 		action = 'count', 
 		dest = 'get_website',
 		help = 'get the website in bugzilla for this product')
+popt.add_option('-N', '--get-news',
+		action = 'count', 
+		dest = 'get_news',
+		help = 'get the new items from the NEWS file')
 popt.add_option('-w', '--update-news',
 		action = 'count', 
 		dest = 'update_news',
@@ -951,7 +958,7 @@
    not opts.release_note_template and not opts.create_release_note and \
    not opts.create_release_email and not opts.upload and \
    not opts.get_description and not opts.get_website and \
-   not opts.update_news and not opts.tag:
+   not opts.update_news and not opts.tag and not opts.get_news:
 	print 'No option specified'
 	print usage
 	sys.exit()
@@ -959,7 +966,7 @@
 if opts.get_bugs or opts.get_summary or \
    opts.get_translators or opts.get_manual_translators or \
    opts.create_release_note or opts.create_release_email or \
-   opts.update_news:
+   opts.update_news or opts.get_news:
 	need_tag = True
 
 if need_tag and not opts.revision:
@@ -1084,6 +1091,11 @@
 if opts.upload:
 	upload_tarball()
 
+if opts.get_news:
+	if opts.debug:
+		print '\nNews:'
+	print get_news()
+
 if opts.update_news:
 	if opts.debug:
 		print '\nUpdating News:' 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]