X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fbuild_tools%2Fautorevision.sh;h=3de1b2be6192c7ae0052536d7bedeb6d94aebe75;hb=55490e15f0dd3df858611ce3b76e2e294367d566;hp=c3c67cfd610aca0d97c1ef102d7594cd1798cee2;hpb=ac121059e307bf658f4994177b591ef92bcbaed6;p=synfig.git diff --git a/synfig-studio/trunk/build_tools/autorevision.sh b/synfig-studio/trunk/build_tools/autorevision.sh index c3c67cf..3de1b2b 100644 --- a/synfig-studio/trunk/build_tools/autorevision.sh +++ b/synfig-studio/trunk/build_tools/autorevision.sh @@ -20,6 +20,8 @@ get_git_svn_id(){ if [ x = "x$REVISION" ] ; then # The extra M at the end is for Modified export REVISION=`cd "$1"; git svn find-rev \`git rev-list --max-count=1 --grep='git-svn-id: ' HEAD\``M + else + export REVISION="$REVISION"`cd "$1"; git diff --quiet HEAD || echo M` fi } @@ -62,7 +64,7 @@ fi # Abort if the header is newer -if [ "$COMPARE" -ot "$HEADER" ] ; then return; fi +if [ "$COMPARE" -ot "$HEADER" ] ; then exit; fi # Set the development version string