X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fbuild_tools%2Fautorevision.sh;h=c8f4cf2e4d3dc2a85946e9856cd1bc8e9fe27e6b;hb=7abc6b3d3dbdb12d39d6e6f337fa20a20d320516;hp=c7a191993b300fd071d6bed2f743bdf8d30e58a4;hpb=800a4e11123a4f0248eb37f7a79fd6a9b4b98c1c;p=synfig.git diff --git a/synfig-core/trunk/build_tools/autorevision.sh b/synfig-core/trunk/build_tools/autorevision.sh index c7a1919..c8f4cf2 100644 --- a/synfig-core/trunk/build_tools/autorevision.sh +++ b/synfig-core/trunk/build_tools/autorevision.sh @@ -22,7 +22,7 @@ get_git_id(){ BRANCH='master' else BRANCH=`echo $BRANCH | cut -d ' ' -f 1` - BRANCH=${BRANCH#*/} + BRANCH=${BRANCH##*/} fi export REVISION=`git show --pretty=format:%ci HEAD | head -c 10 | tr -d '-'` export COMPARE=`git rev-parse --git-dir` @@ -103,5 +103,5 @@ fi # Output the header if [ x != "x$DEVEL_VERSION" ] ; then - printf "#define DEVEL_VERSION \"$DEVEL_VERSION\"\n" >> "$HEADER" + printf "#define DEVEL_VERSION \"$DEVEL_VERSION\"\n" > "$HEADER" fi