From: karltk Date: Thu, 11 Mar 2004 12:09:41 +0000 (-0000) Subject: Fixes ChangeLog mangling problem X-Git-Tag: gentoolkit-0.2.4.3~413 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b67b13289bdb7e7f115d93b92b0fa0aa5969f5f;p=gentoolkit.git Fixes ChangeLog mangling problem svn path=/; revision=89 --- diff --git a/trunk/src/ebump/ChangeLog b/trunk/src/ebump/ChangeLog index 8343792..36618c3 100644 --- a/trunk/src/ebump/ChangeLog +++ b/trunk/src/ebump/ChangeLog @@ -1,2 +1,5 @@ +2004-03-11 Karl Trygve Kalleberg + * Fixed incorrect cut'ing of wc -l output when updating ChangeLog + 2004-02-08 Karl Trygve Kalleberg * Initial import diff --git a/trunk/src/ebump/ebump b/trunk/src/ebump/ebump index 4daf33e..4b58dc4 100755 --- a/trunk/src/ebump/ebump +++ b/trunk/src/ebump/ebump @@ -252,7 +252,7 @@ process_ebuild() { fi # Write tail of old ChangeLog - nl=$(wc -l ChangeLog.old | cut -c 0-8) + nl=$(wc -l ChangeLog.old | sed -r "s/^([0-9]+).*/\1/") tail -n $[nl - 4] ChangeLog.old ) > ChangeLog rm ChangeLog.old