X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fbuild_tools%2Fautorevision.sh;h=3de1b2be6192c7ae0052536d7bedeb6d94aebe75;hb=0576e63534a83920fb3a0ce058eb30f4d22cd755;hp=ec7ec8d7e127ca49a1be5908ee8ca09b437c9b31;hpb=3624aac2a6e2dc3824ae22e99e2608f93f285e61;p=synfig.git diff --git a/synfig-studio/trunk/build_tools/autorevision.sh b/synfig-studio/trunk/build_tools/autorevision.sh index ec7ec8d..3de1b2b 100644 --- a/synfig-studio/trunk/build_tools/autorevision.sh +++ b/synfig-studio/trunk/build_tools/autorevision.sh @@ -16,10 +16,12 @@ get_git_svn_id(){ export SCM=git-svn export REVISION=`cd "$1"; git svn find-rev HEAD` - export COMPARE="$1/.git/svn" + export COMPARE="$1/.git/" 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