Update: orig2001_11_27_05_17 -> orig2001_12_04_22_45
[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 rm -rf /tmp/gnokii-${VERSION}/xlogo*
25
26 (
27    cd /tmp/gnokii-${VERSION}
28    autoconf
29    ./configure
30    cp packaging/RedHat/gnokii.spec .
31    make distclean
32    chmod 755 mkinstalldirs
33    cd ..
34    tar cvfz /tmp/gnokii-${VERSION}.tar.gz gnokii-${VERSION} --exclude CVS
35 )
36
37 rm -rf /tmp/gnokii-${VERSION}
38
39 echo "Distribution generated in /tmp/gnokii-${VERSION}.tar.gz"