From 105c33fe34136245ba47e36660000c882adc4052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 12 Mar 2010 13:48:03 +0100 Subject: [PATCH 1/2] Automatically create TESTING/STABLE tags on release. --- scripts/create-release.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/create-release.sh b/scripts/create-release.sh index 9023b965a..f003c8ad2 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -178,6 +178,14 @@ if [ $# -gt 0 ] ; then tagname=RELEASE_`echo $version | tr . _ | tr '[:lower:]' '[:upper:]' | tr -d -` echo "* Tagging release as $tagname" git tag -a -m "Released $version" $tagname $branch + if echo $version | grep '[a-z_-]' ; then + echo "* Tagging release as TESTING" + git tag -a -f -m "Released $version" TESTING $branch + else + echo "* Tagging release as STABLE" + git tag -a -f -m "Released $version" STABLE $branch + fi + echo " Dont forget to push tags using: git push --tags" ;; *) echo "Unknown parameter: $1!" From c4bdb187033c908982e814af1b254d28ab3b1d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 12 Mar 2010 13:49:27 +0100 Subject: [PATCH 2/2] Better logging of progress. --- scripts/create-release.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/create-release.sh b/scripts/create-release.sh index f003c8ad2..269ef4461 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -93,6 +93,7 @@ fi LC_ALL=C date -u > RELEASE-DATE-${version} # Building Documentation.txt +echo "* Generating Documentation.txt" LC_ALL=C w3m -dump Documentation.html > Documentation.txt # Remove test directory from package to avoid Path disclosure messages @@ -119,28 +120,28 @@ for kit in $KITS ; do for comp in $COMPRESSIONS ; do case $comp in tbz|tgz) - echo "Creating $name.tar" + echo "* Creating $name.tar" tar cf $name.tar $name if [ $comp = tbz ] ; then - echo "Creating $name.tar.bz2" + echo "* Creating $name.tar.bz2" bzip2 -9k $name.tar fi if [ $comp = tgz ] ; then - echo "Creating $name.tar.gz" + echo "* Creating $name.tar.gz" gzip -9c $name.tar > $name.tar.gz fi rm $name.tar ;; zip) - echo "Creating $name.zip" + echo "* Creating $name.zip" zip -q -9 -r $name.zip $name ;; zip-7z) - echo "Creating $name.zip" + echo "* Creating $name.zip" 7za a -bd -tzip $name.zip $name > /dev/null ;; 7z) - echo "Creating $name.7z" + echo "* Creating $name.7z" 7za a -bd $name.7z $name > /dev/null ;; *)