public
Description: A dynamic, hackable window manager written in Python
Homepage: http://incise.org/whimsy.html
Clone URL: git://github.com/mackstann/whimsy.git
mackstann (author)
Wed Dec 17 00:45:49 -0800 2008
commit  2c742ca6b26b35670a2e7df4d65ddfc4af985065
tree    c805c40f131a6b250c9d0445e03a697cb441f0c3
parent  9079b0e248731161d341555d2e43effeabd90e0b
whimsy / make-release.sh
100644 30 lines (20 sloc) 0.633 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
die () {
    echo "$1" >&2
    exit 1;
}
 
echo -n "what should i call this release? "
read release
 
git status | fgrep -q 'nothing to commit (working directory clean)' || die "unclean working directory"
 
export PYTHONPATH=.:"$PYTHONPATH"
find tests -name '*.py' | while read i
do
python "$i" || die "you have failing tests, loser"
done
 
echo "all tests passed"
 
git tag -m "$release release" "$release" || die "git tag failed"
 
dir=whimsy-"$release"
 
mkdir "$dir"
cp -a README fetch-python-xlib.sh whimsy *config.py "$dir"/
find "$dir" -name '*.pyc' | while read i; do rm -f "$i"; done
 
tar zcvf "$dir".tgz "$dir"
rm -rf "$dir"