maintenance: sed script for svn status to ChangeLog conversion

git-svn-id: svn://svn.berlios.de/gpodder/trunk@373 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2007-08-19 15:15:20 +00:00
parent 5bb4089d7f
commit a9bdcc5c17
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Sun, 19 Aug 2007 17:14:10 +0200 <thp@perli.net>
+ doc/dev/svncl.sed: Add script to convert "svn status" output to
a ChangeLog entry, this is to move the sed code from the Makefile
* Makefile: Remove inline sed script and refer to svncl.sed from
the "make cl" target
Sun, 19 Aug 2007 16:24:39 +0200 <thp@perli.net>
! New "opml" module that introduces shiny DOM-based OPML support
* Makefile: Very cool "make cl" improvements with support for file

View File

@ -52,7 +52,7 @@ help:
##########################################################################
cl:
(echo "`date -R` <$(EMAIL)>"; svn status | grep '^[MAD]' | sed -e 's/^M *\(.*\)/ * \1: /' -e 's/^A *\(.*\)/ + \1: /' -e 's/^D *\(.*\)/ - \1: /'| sort; echo ""; cat $(CHANGELOG)) >$(CHANGELOG_TMP)
(echo "`date -R` <$(EMAIL)>" ; svn status | sed -f doc/dev/svncl.sed | sort ; echo ""; cat $(CHANGELOG)) >$(CHANGELOG_TMP)
cp $(CHANGELOG_TMP) $(CHANGELOG_EDT)
$(EDITOR) $(CHANGELOG_EDT)
diff -q $(CHANGELOG_TMP) $(CHANGELOG_EDT) || mv $(CHANGELOG_EDT) $(CHANGELOG)

11
doc/dev/svncl.sed Normal file
View File

@ -0,0 +1,11 @@
#
# Simple sed script to convert the output of "svn status" to a format
# suitable for appending to a ChangeLog file; used by the Makefile
#
# Copyright (c) 2007 Thomas Perl <thp@perli.net>
# Released under the terms of the GPL v2 or later
#
/^[^MAD].*$/d
s/^M *\(.*\)$/ * \1: /
s/^A *\(.*\)$/ + \1: /
s/^D *\(.*\)$/ - \1: /