From e230f24e6a95cd1997e2f19ce155c838b0bb43f8 Mon Sep 17 00:00:00 2001 From: Konstantin Dmitriev Date: Thu, 14 Oct 2010 20:38:23 +0700 Subject: [PATCH] Teach build script to detect release candidates and properly format release id. This change made to avoid RC -> Stable package upgrade problems. See http://dooglus.rincevent.net/synfig/logs/2010/%23synfig-2010-06-01.log @16:33. --- autobuild/synfigstudio-linux-build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autobuild/synfigstudio-linux-build.sh b/autobuild/synfigstudio-linux-build.sh index 60fbe60..86f9b7b 100644 --- a/autobuild/synfigstudio-linux-build.sh +++ b/autobuild/synfigstudio-linux-build.sh @@ -665,6 +665,14 @@ initialize() fi BREED=${BREED%_master} fi + if [[ ${VERSION##*-RC} != ${VERSION} ]]; then + if [[ $BREED == 'master' ]]; then + BREED=rc${VERSION##*-RC} + else + BREED=rc${VERSION##*-RC}.$BREED + fi + VERSION=${VERSION%%-*} + fi [[ $DEBUG == 1 ]] && BREED=${BREED}_debug REVISION=`git show --pretty=medium $SELECTEDREVISION | head -n 3 |tail -n 1 | sed 's/Date: *//' | sed 's/ +.*//'` REVISION=`date --date="${REVISION}" +%Y%m%d` -- 2.7.4