OSDN Git Service

layer move: strokemap too + cursor & idler tweaks
[mypaint-anime/master.git] / release.sh
1 #!/bin/bash
2 # this does roughly what 'make distcheck' would do if we were using autotools
3 set -e
4
5 if ! git diff --quiet; then
6     echo "You have local changes, stage them first with 'git add'!"
7     exit 1
8 fi
9
10 eval $(grep MYPAINT_VERSION= gui/drawwindow.py)
11 version=$MYPAINT_VERSION
12 echo "Version $version"
13
14 orig=$(pwd)
15 d=/tmp/mypaint-$version
16
17 rm -rf $d
18 #svn export . $d
19 git checkout-index -a -f --prefix=$d/
20 cd $d
21 rm release.sh
22 cd ..
23
24 filename=$orig/mypaint-$version.tar.bz2
25 filename2=$orig/mypaint-$version.tar.xz
26 tar -cvjf $filename mypaint-$version
27 tar -cvJf $filename2 mypaint-$version
28
29 cd $d
30 scons debug=true
31 tests/test_mypaintlib.py
32 tests/test_performance.py -a -c 1
33 tests/test_memory_leak.py -a -e
34
35 ls -sSh $filename
36 ls -sSh $filename2
37
38 echo "you can tag this release with 'git tag -s v$version'"
39