diff options
| author | danarmak <danarmak@gentoo.org> | 2002-08-11 17:20:02 +0000 |
|---|---|---|
| committer | danarmak <danarmak@gentoo.org> | 2002-08-11 17:20:02 +0000 |
| commit | e3f00b4860b7c1b5e3dbd9e6f5d68d3bb5bcda9f (patch) | |
| tree | f4cb07895c6602bc29351103cfbbfa3425865d73 /trunk/src | |
| parent | efb5059eb9119838259375c16f057b484cdbbb06 (diff) | |
| download | gentoolkit-e3f00b4860b7c1b5e3dbd9e6f5d68d3bb5bcda9f.tar.gz | |
two fixes for bugs about which i've no idea how they could have gotten there in the first place without me noticing
svn path=/; revision=9
Diffstat (limited to 'trunk/src')
| -rw-r--r-- | trunk/src/change/change | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/trunk/src/change/change b/trunk/src/change/change index de37de0..094573b 100644 --- a/trunk/src/change/change +++ b/trunk/src/change/change @@ -3,7 +3,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Author: Dan Armak <danarmak@gentoo.org> -# $Header: $ +# $Header: /space/gentoo/cvsroot/gentoolkit/src/change/change,v 1.2 2002/08/11 13:32:12 karltk Exp $ eval `grep PORTDIR= /etc/make.globals` eval `grep PORTDIR= /etc/make.conf` @@ -262,10 +262,9 @@ wrap_list() { # do the actual work on te changelog file passed as $1 process() { - # figure out category and package names - name=${1//${PORTDIR}\/} - name=${name//${MYPORTDIR}\/} + name=${1//${PORTDIR}} + name=${name//${MYPORTDIR}} name=${name//\/ChangeLog} OLDIFS="$IFS" @@ -282,7 +281,7 @@ process() { # create header echo \ "# ChangeLog for $CATEGORY/$PACKAGE -# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 # \$Header: \$ " > $TMPHEADER @@ -299,10 +298,9 @@ process() { echo >> $TMPENTRY # get the original changelog, minus the old header - sed -e " -/# ChangeLog for $CATEGORY\/$PACKAGE/ D -/# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL/ D -/^# \$Header: \$" $1 > $TMPOLDLOG + sed -e '/^# ChangeLog for/ D + /^# Copyright 2002 Gentoo Technologies/ D + /^# \$Header:/ D' $1 > $TMPOLDLOG # join everything together cat $TMPHEADER $TMPENTRY $TMPMESSAGE $TMPOLDLOG > $TMPCHANGELOG |
