Updating branch refs/heads/master
to 37384338224023de7dd63a095a460905cb412730 (commit)
from 580a4f4bf18c6bd2bfb6eb1c7f2d96cd4730f3c5 (commit)
commit 37384338224023de7dd63a095a460905cb412730
Author: Christian Dywan <[email protected]>
Date: Fri May 17 20:15:33 2013 +0200
tools/release: Split release into before and after steps
tools/release | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/tools/release b/tools/release
index 8197c5c..54cb433 100755
--- a/tools/release
+++ b/tools/release
@@ -9,20 +9,26 @@
#
# See the file COPYING for the full license text.
-OLDVER=$(git describe --abbrev=0)
-NEWVER=$(python -c "print('0.'+str(float('$OLDVER'[2:])+.1))")
-echo Bumping from $OLDVER to $NEWVER
-echo https://releases.xfce.org/
-echo http://git.xfce.org/apps/midori/snapshot/midori-$NEWVER.tar.bz2
-echo git commit -m "'Bump version to $NEWVER'"';' git tag -a $NEWVER -m "'Bump
version to $NEWVER'"
-sed -i "s@$OLDVER@$NEWVER@g" wscript win32/makedist/midori.nsi
-echo; git log --pretty='format: %s' $OLDVER..HEAD | grep -v l10n | grep -v
makedist | grep -v tools/release | grep -v nsi; echo
-curl http://wiki.xfce.org/_export/xhtml/midori/faq | \
- sed 's@This is a list of frequently asked questions@This is <a
href="http://wiki.xfce.org/midori/faq">a snapshot of the online FAQ</a>@g' | \
- sed 's@<link rel="style.*>@<link rel="stylesheet" href="faq.css" />@g' >
data/faq.html
-echo Press RETURN to update Launchpad bugs now; read yes
-if [ -n $(which bugreleaser 1>/dev/null) ]; then
- bugreleaser midori
+if [ "x$1" = "xbefore" ]; then
+ OLDVER=$(git describe --abbrev=0)
+ NEWVER=$(python -c "print('0.'+str(float('$OLDVER'[2:])+.1))")
+ echo Bumping from $OLDVER to $NEWVER
+ sed -i "s@$OLDVER@$NEWVER@g" wscript win32/makedist/midori.nsi
+ echo; git log --pretty='format: %s' $OLDVER..HEAD | grep -v l10n | grep -v
makedist | grep -v tools/release | grep -v nsi; echo
+ curl http://wiki.xfce.org/_export/xhtml/midori/faq | \
+ sed 's@This is a list of frequently asked questions@This is <a
href="http://wiki.xfce.org/midori/faq">a snapshot of the online FAQ</a>@g' | \
+ sed 's@<link rel="style.*>@<link rel="stylesheet" href="faq.css" />@g'
> data/faq.html
+elif [ "x$1" = "xafter" ]; then
+ echo git commit -m "'Bump version to $NEWVER'"';' git tag -a $NEWVER -m
"'Bump version to $NEWVER'"
+ echo http://git.xfce.org/apps/midori/snapshot/midori-$NEWVER.tar.bz2
+ echo https://releases.xfce.org/
+ echo Press RETURN to update Launchpad bugs now; read yes
+ if [ -n $(which bugreleaser 1>/dev/null) ]; then
+ bugreleaser midori
+ else
+ echo bzr branch lp:~mgiuca/+junk/launchpad-tools
+ fi
else
- echo bzr branch lp:~mgiuca/+junk/launchpad-tools
+ echo 'Usage: ['$(basename $0)']' 'before|after'
+ exit 1
fi
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits