Implemented connection type "tcp" (GCT_TCP), use <hostname>:<port> as "port"
[gnokii.git] / packaging / make_dist
1 #!/bin/bash
2
3 #
4 # This script is used for preparing the tarballs.
5 # Do not use it, please.
6 #
7
8 #
9 # DeMorgan rules applied :-) I like math...
10 #
11
12 if [ "x`whoami`" != xpavel -a "x`whoami`" != xhugh -a "x`whoami`" != xpkot ]
13 then
14    echo "No way to test this :-)"
15 fi
16
17 VERSION=`cat ../VERSION`
18
19 rm -rf /tmp/gnokii-${VERSION}
20 cp -r ../../gnokii /tmp/gnokii-${VERSION}
21
22 # Some files and directories in CVS are useless
23 rm -rf /tmp/gnokii-${VERSION}/xkeyb
24
25 (
26    cd /tmp/gnokii-${VERSION}
27    autoconf
28    ./configure
29    cp packaging/RedHat/gnokii.spec .
30    make distclean
31    chmod 755 mkinstalldirs
32    cd ..
33    tar cvfz /tmp/gnokii-${VERSION}.tar.gz gnokii-${VERSION} --exclude CVS
34 )
35
36 rm -rf /tmp/gnokii-${VERSION}
37
38 echo "Distribution generated in /tmp/gnokii-${VERSION}.tar.gz"