public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: /, src/echangelog/
@ 2011-03-24 20:09 Christian Ruppert
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ruppert @ 2011-03-24 20:09 UTC (permalink / raw
  To: gentoo-commits

commit:     b6ab1e63579b3d6d07d2872b49a04d5f87d3a22f
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 24 19:51:51 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Thu Mar 24 19:51:51 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=b6ab1e63

Remove duplicate sort calls.

---
 ChangeLog                 |    3 +++
 src/echangelog/echangelog |    7 ++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 467ace3..647f060 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2011-03-24: Christian Ruppert <idl0r@gentoo.org>
+	* echangelog: Remove duplicate sort calls.
+
 2011-03-23: Christian Ruppert <idl0r@gentoo.org>
 	* echangelog: Fix update_copyright loop to check/update ebuilds again.
 

diff --git a/src/echangelog/echangelog b/src/echangelog/echangelog
index d95edfb..098e235 100755
--- a/src/echangelog/echangelog
+++ b/src/echangelog/echangelog
@@ -636,6 +636,7 @@ if (!@files && !@ebuilds) {
 }
 
 # sort
+@ebuilds = sort sortfunc @ebuilds;
 @files = sort sortfunc @files;
 @new_versions = sort sortfunc @new_versions;
 
@@ -715,11 +716,11 @@ die "Please set ECHANGELOG_USER or run as non-root\n" if $user =~ /<root@/;
 
 $entry = "$date; $user ";
 if(@ebuilds) {
-	$entry .= join(', ', sort sortfunc map("$actions{$_}$_", @ebuilds));
-	$entry .= ", ".join(', ', sort sortfunc map("$actions{$_}$_", @files)) if @files;
+	$entry .= join(', ', map("$actions{$_}$_", @ebuilds));
+	$entry .= ", ".join(', ', map("$actions{$_}$_", @files)) if @files;
 }
 else {
-	$entry .= join ', ', sort sortfunc map("$actions{$_}$_", @files);
+	$entry .= join ', ', map("$actions{$_}$_", @files);
 }
 $entry .= ':';
 $entry = Text::Wrap::fill('  ', '  ', $entry); # does not append a \n



^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: /, src/echangelog/
@ 2014-11-15 18:37 Christian Ruppert
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ruppert @ 2014-11-15 18:37 UTC (permalink / raw
  To: gentoo-commits

commit:     aa973a1c0dc4a23e65e5bcdf970dffc311f085fe
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 15 18:36:30 2014 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Sat Nov 15 18:36:30 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=aa973a1c

Generate echangelog.1 (manpage) and delete the old, separate one. We use Pod::Usage and pod2man now

---
 .gitignore                  |   1 +
 src/echangelog/Makefile     |   7 +-
 src/echangelog/echangelog   |   7 +-
 src/echangelog/echangelog.1 | 270 --------------------------------------------
 4 files changed, 11 insertions(+), 274 deletions(-)

diff --git a/.gitignore b/.gitignore
index 0d20b64..49a360b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 *.pyc
+src/echangelog/echangelog.1

diff --git a/src/echangelog/Makefile b/src/echangelog/Makefile
index 5d344b0..27ad5ca 100644
--- a/src/echangelog/Makefile
+++ b/src/echangelog/Makefile
@@ -16,13 +16,16 @@ clean:
 test:
 	cd test; sh test.sh
 
-dist:
+echangelog.1:
+	pod2man echangelog > echangelog.1
+
+dist: echangelog.1
 	mkdir -p ../../$(DISTDIR)/src/echangelog/test/templates
 	cp Makefile AUTHORS README ChangeLog echangelog echangelog.1 ../../$(DISTDIR)/src/echangelog/
 	cp test/TEST.pm test/test.sh ../../$(DISTDIR)/src/echangelog/test/
 	cp test/templates/test.patch test/templates/vcstest-0.0.1.ebuild ../../$(DISTDIR)/src/echangelog/test/templates
 
-install: all
+install: all echangelog.1
 	install -m 0755 echangelog $(BINDIR)/
 	install -d $(DOCDIR)/echangelog
 	install -m 0644 AUTHORS README $(DOCDIR)/echangelog/

diff --git a/src/echangelog/echangelog b/src/echangelog/echangelog
index 7a04634..c382fd6 100755
--- a/src/echangelog/echangelog
+++ b/src/echangelog/echangelog
@@ -976,10 +976,13 @@ the existence of both formats will undoubtedly cause much confusion.  This also
 means that the examples above are wrong, since I just copied them from some old
 email.  However they're not much wrong. ;-)
 
+Bugs found should be filed against tools-portage@gentoo.org at http://bugs.gentoo.org/
+
 =head1 AUTHORS
 
-This tool was written by Aron Griffis <agriffis@gentoo.org>.  Bugs found should
-be filed against me at http://bugs.gentoo.org/
+This tool was originally written by Aron Griffis <agriffis@gentoo.org>.
+
+Continued by Christian Ruppert <idl0r@gentoo.org>.
 
 This man page has been turned into a Perl POD document by Patrice Clement
 <monsieurp@gentoo.org>.

diff --git a/src/echangelog/echangelog.1 b/src/echangelog/echangelog.1
deleted file mode 100644
index 1575644..0000000
--- a/src/echangelog/echangelog.1
+++ /dev/null
@@ -1,270 +0,0 @@
-.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.07)
-.\"
-.\" Standard preamble:
-.\" ========================================================================
-.de Sh \" Subsection heading
-.br
-.if t .Sp
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
-.de Sp \" Vertical space (when we can't use .PP)
-.if t .sp .5v
-.if n .sp
-..
-.de Vb \" Begin verbatim text
-.ft CW
-.nf
-.ne \\$1
-..
-.de Ve \" End verbatim text
-.ft R
-.fi
-..
-.\" Set up some character translations and predefined strings.  \*(-- will
-.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
-.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
-.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
-.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
-.\" nothing in troff, for use with C<>.
-.tr \(*W-
-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
-.ie n \{\
-.    ds -- \(*W-
-.    ds PI pi
-.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
-.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
-.    ds L" ""
-.    ds R" ""
-.    ds C` ""
-.    ds C' ""
-'br\}
-.el\{\
-.    ds -- \|\(em\|
-.    ds PI \(*p
-.    ds L" ``
-.    ds R" ''
-'br\}
-.\"
-.\" Escape single quotes in literal strings from groff's Unicode transform.
-.ie \n(.g .ds Aq \(aq
-.el       .ds Aq '
-.\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
-.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
-.\" entries marked with X<> in POD.  Of course, you'll have to process the
-.\" output yourself in some meaningful fashion.
-.ie \nF \{\
-.    de IX
-.    tm Index:\\$1\t\\n%\t"\\$2"
-..
-.    nr % 0
-.    rr F
-.\}
-.el \{\
-.    de IX
-..
-.\}
-.\"
-.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
-.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
-.    \" fudge factors for nroff and troff
-.if n \{\
-.    ds #H 0
-.    ds #V .8m
-.    ds #F .3m
-.    ds #[ \f1
-.    ds #] \fP
-.\}
-.if t \{\
-.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
-.    ds #V .6m
-.    ds #F 0
-.    ds #[ \&
-.    ds #] \&
-.\}
-.    \" simple accents for nroff and troff
-.if n \{\
-.    ds ' \&
-.    ds ` \&
-.    ds ^ \&
-.    ds , \&
-.    ds ~ ~
-.    ds /
-.\}
-.if t \{\
-.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
-.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
-.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
-.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
-.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
-.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
-.\}
-.    \" troff and (daisy-wheel) nroff accents
-.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
-.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
-.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
-.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
-.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
-.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
-.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
-.ds ae a\h'-(\w'a'u*4/10)'e
-.ds Ae A\h'-(\w'A'u*4/10)'E
-.    \" corrections for vroff
-.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
-.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
-.    \" for low resolution devices (crt and lpr)
-.if \n(.H>23 .if \n(.V>19 \
-\{\
-.    ds : e
-.    ds 8 ss
-.    ds o a
-.    ds d- d\h'-1'\(ga
-.    ds D- D\h'-1'\(hy
-.    ds th \o'bp'
-.    ds Th \o'LP'
-.    ds ae ae
-.    ds Ae AE
-.\}
-.rm #[ #] #H #V #F C
-.\" ========================================================================
-.\"
-.IX Title "echangelog 1"
-.TH echangelog 1 "2009-04-28" "perl v5.10.0" "Gentoolkit"
-.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
-.\" way too many mistakes in technical documents.
-.if n .ad l
-.nh
-.SH "NAME"
-echangelog \- Gentoo: update portage ChangeLogs
-.SH "SYNOPSIS"
-.IX Header "SYNOPSIS"
-echangelog [ \fItext\fR ]
-.SH "DESCRIPTION"
-.IX Header "DESCRIPTION"
-This tool provides an easy way to create or update portage ChangeLogs
-in Gentoo.  The tool scans the current directory, which is assumed to
-be a package directory such as /usr/portage/app\-editors/vim, finds
-what files have been changed or added, and inserts the appropriate
-entry to ChangeLog.  If \fItext\fR is not provided on the command-line,
-echangelog prompts for it.
-.PP
-All modifications should occur before running echangelog so that it
-can include the appropriate file information in the ChangeLog entry.
-For example, you should run \*(L"cvs add\*(R" on your files, otherwise
-echangelog won't know those files are part of the update.
-.PP
-If your text would cause the ChangeLog entry to exceed 80 columns, it
-will be rewrapped to keep the ChangeLog neat.  If you need special
-formatting in the ChangeLog, then you can either (1) run echangelog
-with no text on the command-line, and make sure that your text won't
-be too wide, (2) edit the ChangeLog manually.  If you prefer (2), I'd
-recommend something like \*(L"echangelog blah\*(R" so that the header lines
-are computed correctly, then edit and change \*(L"blah\*(R" to your preferred
-text.
-.PP
-In addition to updating the ChangeLog, echangelog will automatically
-update the copyright year of all out-of-date ebuilds, as well as the
-ChangeLog itself.  These updates are included in the diff displayed by
-echangelog when it finishes its work.
-.SH "OPTIONS"
-.IX Header "OPTIONS"
-Presently echangelog is simple enough that it supplies no options.
-Probably I'll add \fB\-\-help\fR and \fB\-\-version\fR in the future, but for
-now it's enough to track the gentoolkit version.
-.SH "EXAMPLES"
-.IX Header "EXAMPLES"
-To create a ChangeLog for a completely new package.  The header is
-parsed from skel.ebuild.
-.PP
-.Vb 2
-\&  $ cvs add metalog\-0.1.ebuild
-\&  cvs server: use \*(Aqcvs commit\*(Aq to add this file permanently
-\&
-\&  $ echangelog \*(AqNew ebuild, thanks to Harvey McGillicuddy\*(Aq
-\&  \-\-\- ChangeLog   1969\-12\-31 19:00:00.000000000 \-0500
-\&  +++ ChangeLog.new       2003\-02\-23 14:04:06.000000000 \-0500
-\&  @@ \-0,0 +1,9 @@
-\&  +# ChangeLog for app\-admin/metalog
-\&  +# Copyright 2000\-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-\&  +# $Header$
-\&  +
-\&  +*metalog\-0.1 (23 Feb 2003)
-\&  +
-\&  +  23 Feb 2003; Aron Griffis <agriffis@gentoo.org> metalog\-0.1.ebuild :
-\&  +  New ebuild, thanks to Harvey McGillicuddy
-\&  +
-.Ve
-.PP
-To bump a revision.  Note you need to \*(L"cvs add\*(R" so that echangelog
-will notice the new file.
-.PP
-.Vb 2
-\&  $ cvs add metalog\-0.1\-r1.ebuild
-\&  cvs server: use \*(Aqcvs commit\*(Aq to add this file permanently
-\&
-\&  $ echangelog \*(AqBump revision to fix bug #999\*(Aq
-\&  \-\-\- ChangeLog   2003\-02\-23 14:04:06.000000000 \-0500
-\&  +++ ChangeLog.new       2003\-02\-23 14:07:48.000000000 \-0500
-\&  @@ \-2,6 +2,11 @@
-\&   # Copyright 2000\-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-\&   # $Header$
-\&
-\&  +*metalog\-0.1\-r1 (23 Feb 2003)
-\&  +
-\&  +  23 Feb 2003; Aron Griffis <agriffis@gentoo.org> metalog\-0.1\-r1.ebuild :
-\&  +  Bump revision to fix bug #999
-\&  +
-\&   *metalog\-0.1 (23 Feb 2003)
-\&
-\&     23 Feb 2003; Aron Griffis <agriffis@gentoo.org> metalog\-0.1.ebuild :
-.Ve
-.PP
-For a multi-line entry, omit the command-line arg.
-.PP
-.Vb 10
-\&  $ echangelog
-\&  Please type the log entry, finish with ctrl\-d
-\&  Bump revision to fix bug #999.  Necessary to bump the revision because
-\&  the problem appears at run\-time, not compile\-time.  This should also
-\&  give users the updated default configuration file.
-\&  \-\-\- ChangeLog   2003\-02\-23 14:09:12.000000000 \-0500
-\&  +++ ChangeLog.new       2003\-02\-23 14:12:43.000000000 \-0500
-\&  @@ \-2,6 +2,13 @@
-\&   # Copyright 2000\-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-\&   # $Header$
-\&
-\&  +*metalog\-0.1\-r1 (23 Feb 2003)
-\&  +
-\&  +  23 Feb 2003; Aron Griffis <agriffis@gentoo.org> metalog\-0.1\-r1.ebuild :
-\&  +  Bump revision to fix bug #999.  Necessary to bump the revision because
-\&  +  the problem appears at run\-time, not compile\-time.  This should also
-\&  +  give users the updated default configuration file.
-\&  +
-\&   *metalog\-0.1 (23 Feb 2003)
-\&
-\&     23 Feb 2003; Aron Griffis <agriffis@gentoo.org> metalog\-0.1.ebuild :
-.Ve
-.SH "ENVIRONMENT VARIABLES"
-.IX Header "ENVIRONMENT VARIABLES"
-.IP "\s-1ECHANGELOG_USER\s0" 4
-.IX Item "ECHANGELOG_USER"
-If echangelog can't figure out your username for the entry, you should
-set \s-1ECHANGELOG_USER\s0.  For example, export ECHANGELOG_USER=\*(L"Aron
-Griffis <agriffis@gentoo.org>\*(R"
-.SH "NOTES"
-.IX Header "NOTES"
-As of the most recent version of echangelog (when this man-page
-appeared), echangelog puts all new entries at the top of the file
-instead of finding the appropriate *version line within the file.
-This is because that \*(L"new\*(R" ChangeLog format was never agreed upon by
-the Gentoo developers.  Unfortunately the existence of both formats
-will undoubtedly cause much confusion.
-.PP
-This also means that the examples above are wrong, since I just copied
-them from some old email.  However they're not much wrong. ;\-)
-.PP
-This tool was written by Aron Griffis <agriffis@gentoo.org>.  Bugs
-found should be filed against me at http://bugs.gentoo.org/


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: /, src/echangelog/
@ 2012-04-09  1:40 Christian Ruppert
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ruppert @ 2012-04-09  1:40 UTC (permalink / raw
  To: gentoo-commits

commit:     c384ecf52202737f06e3f7294d4251b2a39bdcf7
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  9 01:30:10 2012 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Mon Apr  9 01:30:10 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=c384ecf5

Improve the VCS check by adding a fallback/default PATH in case $PATH is empty

---
 ChangeLog                 |    2 ++
 src/echangelog/echangelog |   14 ++++++--------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 647f060..23418c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-03-24: Christian Ruppert <idl0r@gentoo.org>
 	* echangelog: Remove duplicate sort calls.
+		Improve the VCS check by adding a fallback/default PATH in case $PATH is
+		empty
 
 2011-03-23: Christian Ruppert <idl0r@gentoo.org>
 	* echangelog: Fix update_copyright loop to check/update ebuilds again.

diff --git a/src/echangelog/echangelog b/src/echangelog/echangelog
index 098e235..cf0659b 100755
--- a/src/echangelog/echangelog
+++ b/src/echangelog/echangelog
@@ -239,16 +239,14 @@ if($opt_strict) {
 # Figure out what kind of repo we are in.
 # Respect $PATH while looking for the VCS
 if(! defined($opt_force_vcs)) {
-	if (getenv("PATH")) {
-		foreach my $path ( split(":", getenv("PATH")) ) {
-			foreach my $_vcs (sort(keys(%vcs))) {
-				if ( -X "${path}/${_vcs}" ) {
-					$vcs = $_vcs if check_vcs_dir($vcs{$_vcs}{directory});
-					last if $vcs;
-				}
+	foreach my $path ( split(":", (getenv("PATH") || "/bin:/usr/bin:/usr/local/bin")) ) {
+		foreach my $_vcs (sort(keys(%vcs))) {
+			if ( -X "${path}/${_vcs}" ) {
+				$vcs = $_vcs if check_vcs_dir($vcs{$_vcs}{directory});
+				last if $vcs;
 			}
-			last if $vcs;
 		}
+		last if $vcs;
 	}
 }
 else {



^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: /, src/echangelog/
@ 2012-04-09  1:40 Christian Ruppert
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ruppert @ 2012-04-09  1:40 UTC (permalink / raw
  To: gentoo-commits

commit:     927063bf2ecd6157ed48e304a94e36456d3ea4b3
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  9 01:38:16 2012 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Mon Apr  9 01:38:16 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=927063bf

Don't modify the initial copyright year when updating e.g. 1999-2012, bug 380325.

---
 ChangeLog                 |    4 +++-
 src/echangelog/echangelog |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 23418c7..80e6caa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,9 @@
 2011-03-24: Christian Ruppert <idl0r@gentoo.org>
 	* echangelog: Remove duplicate sort calls.
 		Improve the VCS check by adding a fallback/default PATH in case $PATH is
-		empty
+		empty.
+		Don't modify the initial copyright year when updating e.g. 1999-2012,
+		bug 380325.
 
 2011-03-23: Christian Ruppert <idl0r@gentoo.org>
 	* echangelog: Fix update_copyright loop to check/update ebuilds again.

diff --git a/src/echangelog/echangelog b/src/echangelog/echangelog
index cf0659b..62bff9b 100755
--- a/src/echangelog/echangelog
+++ b/src/echangelog/echangelog
@@ -215,7 +215,7 @@ sub update_copyright {
 	(my $year = $date) =~ s/.* //;
 
 	$t =~ s/^# Copyright \d+(?= )/$&-$year/m or
-	$t =~ s/^(# Copyright) \d+-(\d+)/$1 1999-$year/m;
+	$t =~ s/^(# Copyright) (\d+)-\d+/$1 $2-$year/m;
 
 	return $t;
 }



^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: /, src/echangelog/
@ 2011-03-23 16:30 Christian Ruppert
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Ruppert @ 2011-03-23 16:30 UTC (permalink / raw
  To: gentoo-commits

commit:     c8599a0510c9df8ec4555d9156818e0cd7b5a10b
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 23 16:30:19 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Wed Mar 23 16:30:19 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=c8599a05

Fix update_copyright loop to check/update ebuilds again.

---
 ChangeLog                 |    3 +++
 src/echangelog/echangelog |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 47e76e0..467ace3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2011-03-23: Christian Ruppert <idl0r@gentoo.org>
+	* echangelog: Fix update_copyright loop to check/update ebuilds again.
+
 2011-01-25: Christian Ruppert <idl0r@gentoo.org>
 	* echangelog: Some cleanup.
 		Use the @ebuilds array instead of @files for ebuild related changes.

diff --git a/src/echangelog/echangelog b/src/echangelog/echangelog
index 273c5db..d95edfb 100755
--- a/src/echangelog/echangelog
+++ b/src/echangelog/echangelog
@@ -750,7 +750,7 @@ if (@new_versions) {
 # Update affected ebuilds and some other files copyright dates.  There is no reason to update the
 # copyright lines on ebuilds that haven't changed. I verified this with an IP
 # lawyer. (patches/diffs and binary files are excluded)
-for my $e (grep(!/\.(patch|diff)$/, @files)) {
+for my $e (grep(!/\.(patch|diff)$/, @files), @ebuilds) {
 	if (-s $e && ! -B $e) {
 		my ($etext, $netext);
 



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-15 18:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-24 20:09 [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: /, src/echangelog/ Christian Ruppert
  -- strict thread matches above, loose matches on Subject: below --
2014-11-15 18:37 Christian Ruppert
2012-04-09  1:40 Christian Ruppert
2012-04-09  1:40 Christian Ruppert
2011-03-23 16:30 Christian Ruppert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox