blob: 994b00b4b4b05ee0fc98c465143899a2d0258e19 (
plain) (
blame)
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
|
#!/bin/bash
# start from the directory above the combined subsurface & subsurface/libdivecomputer directory
VERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v//')
echo "building Subsurface" $VERSION
if [[ -d subsurface-$VERSION ]]; then
rm -rf subsurface-$VERSION.bak.prev
mv subsurface-$VERSION.bak subsurface-$VERSION.bak.prev
mv subsurface-$VERSION subsurface-$VERSION.bak
fi
mkdir subsurface-$VERSION
(cd subsurface ; tar cf - . .git ) | (cd subsurface-$VERSION ; tar xf - )
cd subsurface-$VERSION
dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes
rm debian/*.ex debian/*.EX debian/README.*
cp ../subsurface/packaging/ubuntu/control debian/control
cp ../subsurface/packaging/ubuntu/copyright debian/copyright
cp ../subsurface/packaging/ubuntu/rules debian/rules
cp ../subsurface/packaging/ubuntu/source.lintian-overrides debian/source.lintian-overrides
# do something clever with changelog
mv debian/changelog debian/autocl
head -1 debian/autocl | sed -e 's/unstable/trusty/' > debian/changelog
cat ../subsurface/packaging/ubuntu/changelog.txt >> debian/changelog
tail -1 debian/autocl >> debian/changelog
rm -f debian/autocl
debuild -S
exit
cd subsurface-$VERSION/libdivecomputer
autoreconf --install
./configure
make
|