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
tar -cvjf $filename mypaint-$version
26
27
cd $d
28
scons debug=true
29
tests/test_mypaintlib.py --leak
30
tests/test_performance.py -a -c 1
31
32
ls -sSh $filename
33
34
echo "you can tag this release with 'git tag -s v$version'"