]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: fix changelog generation.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 28 Sep 2011 18:18:54 +0000 (20:18 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 28 Sep 2011 18:18:54 +0000 (20:18 +0200)
make.sh

diff --git a/make.sh b/make.sh
index ecba4aa99619f0ef175c82f11fde7c488009b040..9d7581b4d5e7725b633c22a71f672daad03a2cb5 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -774,7 +774,9 @@ buildpackages() {
   
   # Update changelog
   cd $BASEDIR
-  $0 git log
+  [ -z $GIT_TAG ]  || LAST_TAG=$GIT_TAG
+  [ -z $LAST_TAG ] || EXT="$LAST_TAG..HEAD"
+  git log -n 500 --no-merges --pretty=medium --shortstat $EXT > $BASEDIR/doc/ChangeLog
 
   # Create images for install
   ipfiremake cdrom