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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/bin/sh
VERSION=`cat control-install | grep "Version" | cut -d\ -f2`
ARCHIVE="pogo-"$VERSION".tar.gz"
DEST='pogo-'$VERSION
if [ -d $DEST ]; then
rm -rf $DEST
fi
mkdir $DEST
# Make clean
find -type f -name "*.pyc" -exec rm -f {} \;
find -type f -name "*.pyo" -exec rm -f {} \;
# Sources
cp -R ./src $DEST/
# Images
cp -R ./pix/ $DEST/
# Resources
mkdir $DEST/res/
cp ./res/*.glade $DEST/res/
cp ./res/*.desktop $DEST/res/
# Scripts
cp Makefile $DEST/
#cp start-release.sh $DEST/start.sh
#cp start-remote-release.sh $DEST/start-remote.sh
cp pogo.py $DEST/
cp start.sh $DEST/
# Doc
#cp -R ./doc/ $DEST/
mkdir $DEST/doc
cp ./doc/COPYING $DEST/
cp ./doc/NEWS $DEST/
cp ./doc/README $DEST/
cp ./doc/pogo.1 $DEST/doc
# Locales
mkdir $DEST/po
cp ./po/*.po $DEST/po/
cp ./po/Makefile $DEST/po/
# Remove .svn and .bzr directories
find $DEST -type d -name ".svn" -exec rm -rf {} \; > /dev/null 2>&1
find $DEST -type d -name ".bzr" -exec rm -rf {} \; > /dev/null 2>&1
# Sources: Make sure to remove non-Python files
find $DEST/src -type f ! -name "*.py" -exec rm -f {} \;
tar czf $ARCHIVE $DEST
#rm -rf $DEST
|