Fixes ChangeLog mangling problem
authorkarltk <karltk@gentoo.org>
Thu, 11 Mar 2004 12:09:41 +0000 (12:09 -0000)
committerkarltk <karltk@gentoo.org>
Thu, 11 Mar 2004 12:09:41 +0000 (12:09 -0000)
svn path=/; revision=89

trunk/src/ebump/ChangeLog
trunk/src/ebump/ebump

index 834379262ed6758ad901a2926cf50de45129839f..36618c31000cb7c80cdbde74c707dd03a1f0c95f 100644 (file)
@@ -1,2 +1,5 @@
+2004-03-11 Karl Trygve Kalleberg <karltk@gentoo.org>
+       * Fixed incorrect cut'ing of wc -l output when updating ChangeLog
+       
 2004-02-08 Karl Trygve Kalleberg <karltk@gentoo.org>
        * Initial import
index 4daf33e9434347a5bcd23afd3b681ae4652ce161..4b58dc431fad79e667613bbd9f4eec9dc688911f 100755 (executable)
@@ -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