2 # this does roughly what 'make distcheck' would do if we were using autotools
5 if ! git diff --quiet; then
6 echo "You have local changes, stage them first with 'git add'!"
10 eval $(grep MYPAINT_VERSION= gui/drawwindow.py)
11 version=$MYPAINT_VERSION
12 echo "Version $version"
15 d=/tmp/mypaint-$version
19 git checkout-index -a -f --prefix=$d/
24 filename=$orig/mypaint-$version.tar.bz2
25 tar -cvjf $filename mypaint-$version
29 tests/test_mypaintlib.py
30 tests/test_performance.py -a -c 1
31 tests/test_memory_leak.py -a -e
35 echo "you can tag this release with 'git tag -s v$version'"