-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmake-deb-package
executable file
·77 lines (46 loc) · 1.1 KB
/
make-deb-package
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
#set -x
set -e
export DEBEMAIL="[email protected]"
export DEBFULLNAME="Hendrik Tews"
timestamp=$(date '+%Y-%m-%d')
dir="prooftree-$timestamp"
webdir=/home/tews/www/alfa-www/askra-root/software/prooftree
export CVSROOT=$(cat CVS/Root)
echo using CVSROOT $CVSROOT
#######################################################################
# make source and bin package
version=$(cat version.txt)
#version=0.11
subdir="prooftree-$version"
tgzfile="$subdir.tar.gz"
pushd /tmp/tews
rm -rf prooftree-*
mkdir $dir
pushd $dir
cvs export -r HEAD -d $subdir src/proof-tree
#cvs export -r prooftree-release-0-11 -d $subdir src/proof-tree
pushd $subdir
rm -f make-release make-deb-package
popd
# back in $dir
mv $subdir/debian .
tar -czf $tgzfile $subdir
cp $tgzfile prooftree_$version.orig.tar.gz
cp -a $subdir $subdir-orig
mv debian $subdir
pushd $subdir
#./configure --prefix /usr
exit 0
debuild -i -us -uc
popd
# back in $dir
debfile=$(ls *.deb)
echo
echo copy $debfile to $webdir
echo -n [Y/n]?
read answer
if [ ${answer:=y} = n -o $answer = N ] ; then
exit 0
fi
cp $debfile $webdir/releases