Permalink
Browse files

added script for generating changelog

  • Loading branch information...
1 parent 1c9d797 commit 0464d850bf98812dd1046f18fc022c7db58da6a9 @jdeolive jdeolive committed Mar 8, 2012
Showing with 34 additions and 0 deletions.
  1. +34 −0 changelog.sh
View
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+#set -e
+#set -x
+
+if [ "$#" -lt 2 ]
+then
+ echo "$0 <FROM> <TO> [--no-filter]"
+ exit
+fi
+
+args=( $* )
+for (( i=2; i < ${#args[*]}; i++ )); do
+ arg=${args[$i]}
+ if [ $arg == "--no-filter" ]; then
+ no_filter=$arg
+ fi
+done
+
+from=$1
+to=$2
+
+git log $from..$to | grep "#" | sed 's/^/ > /g'
+echo
+
+submodules=`git submodule status | cut -d ' ' -f 3 | xargs`
+for sub in $submodules; do
+ if [ ! -z $no_filter ]; then
+ git submodule summary $from $to $sub
+ else
+ git submodule summary $from $to $sub | egrep "\*|GEOS-|GEOT-|#"
+ echo
+ fi
+done

0 comments on commit 0464d85

Please sign in to comment.