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 filename2=$orig/mypaint-$version.tar.xz
26 tar -cvjf $filename mypaint-$version
27 tar -cvJf $filename2 mypaint-$version
31 tests/test_mypaintlib.py
32 tests/test_performance.py -a -c 1
33 tests/test_memory_leak.py -a -e
38 echo "you can tag this release with 'git tag -s v$version'"