~midori/midori/fix-1094858

« back to all changes in this revision

Viewing changes to tools/release

  • Committer: Christian Dywan
  • Date: 2013-05-19 14:04:16 UTC
  • Revision ID: christian.dywan@canonical.com-20130519140416-dqhue3qw1marvwn2
tools: Port git-specific bits from release scripts to bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#
10
10
# See the file COPYING for the full license text.
11
11
 
12
 
OLDVER=$(git describe --abbrev=0)
 
12
OLDVER=$(grep --color=no 'VERSION = VERSION_FULL = ' wscript | sed -r "s@.+ = '(.+)'@\1@")
13
13
NEWVER=$(python -c "print('0.'+str(float('$OLDVER'[2:])+.1))")
14
14
if [ "x$1" = "xbefore" ]; then
15
15
    echo Bumping from $OLDVER to $NEWVER
 
16
    OLDVER=0.5.1
16
17
    sed -i "s@$OLDVER@$NEWVER@g" wscript win32/makedist/midori.nsi
17
 
    echo; echo v$NEWVER:; git log --pretty='format: %s' $OLDVER..HEAD | grep -v l10n | grep -v makedist | grep -v tools/release | grep -v nsi | grep -v -E 'Update .+ translation'; echo
 
18
    echo; echo v$NEWVER:; bzr log --line -rtag:$OLDVER.. | sed -r 's@.+2013-[0-9]+-[0-9]+ @@' | grep -v l10n | grep -v makedist | grep -v tools/release | grep -v nsi | grep -v -E 'Update .+ translation'; echo
18
19
    curl http://wiki.xfce.org/_export/xhtml/midori/faq | \
19
20
        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' | \
20
21
        sed 's@<link rel="style.*>@<link rel="stylesheet" href="faq.css" />@g' > data/faq.html
21
22
elif [ "x$1" = "xafter" ]; then
22
 
    echo -n git commit -m "'Bump version to $NEWVER'"
 
23
    echo -n bzr commit -p -m "'Bump version to $NEWVER'"
23
24
    case $SHELL in
24
25
    *fish*)
25
26
        echo -n '; and ' ;;
26
27
    *)
27
28
        echo -n ' && ' ;;
28
29
    esac
29
 
    echo git tag -a $NEWVER -m "'Bump version to $NEWVER'"
 
30
    echo bzr tag $NEWVER
30
31
    echo Press RETURN to download tarball now; read yes
31
32
    wget http://git.xfce.org/apps/midori/snapshot/midori-$NEWVER.tar.bz2
32
33
    echo https://releases.xfce.org/