3 # Usage: haschanged.sh [-l] [tag]
5 # Show changes in git for all modules since either tag specified on command
6 # line or the most recent tag on main branch (as found by git describe)
8 # If -l is given, shows git log since tag
12 if test "x$1" = "x-l" ; then
21 exit $1 is not a directory
25 if test -e $i/configure.ac
; then
27 if test "x${TAG}" != "x" ; then
28 LAST_TAG
=`git tag -l $TAG`
30 LAST_TAG
=`git describe --abbrev=0`
32 if test "x${LAST_TAG}" = "x" ; then
33 echo $1/${i}: tag
${TAG} not found
35 HEAD_DESC
=`git describe`
37 if test "${HEAD_DESC}" != "${LAST_TAG}" ; then
38 echo $1/$i has changed since
$LAST_TAG
39 if test "${SHOW_LOG}" = 1 ; then
41 git log
"${LAST_TAG}"..
42 echo '============================================'
46 echo $1/$i has not changed since
$LAST_TAG