summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/ubuntu/debian/compat1
-rw-r--r--packaging/ubuntu/debian/docs7
-rw-r--r--packaging/ubuntu/debian/source/format1
-rw-r--r--packaging/ubuntu/make-package.sh43
4 files changed, 40 insertions, 12 deletions
diff --git a/packaging/ubuntu/debian/compat b/packaging/ubuntu/debian/compat
new file mode 100644
index 000000000..ec635144f
--- /dev/null
+++ b/packaging/ubuntu/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/packaging/ubuntu/debian/docs b/packaging/ubuntu/debian/docs
new file mode 100644
index 000000000..40dc76e3f
--- /dev/null
+++ b/packaging/ubuntu/debian/docs
@@ -0,0 +1,7 @@
+gpl-2.0.txt
+README
+Readme.testing
+Readme.ubuntu
+ReleaseNotes.txt
+SupportedDivecomputers.txt
+TODO.CCR
diff --git a/packaging/ubuntu/debian/source/format b/packaging/ubuntu/debian/source/format
new file mode 100644
index 000000000..163aaf8d8
--- /dev/null
+++ b/packaging/ubuntu/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/packaging/ubuntu/make-package.sh b/packaging/ubuntu/make-package.sh
index 726c9cb74..71674d872 100644
--- a/packaging/ubuntu/make-package.sh
+++ b/packaging/ubuntu/make-package.sh
@@ -9,31 +9,50 @@ fi
GITVERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v//')
VERSION=$(echo $GITVERSION | sed -e 's/-/./')
LIBDCREVISION=$(cd subsurface/libdivecomputer ; git rev-parse --verify HEAD)
+#
+#
echo "building Subsurface" $VERSION "with libdivecomputer" $LIBDCREVISION
+#
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
+#
+#
+echo "copying sources"
+#
(cd subsurface ; tar cf - . ) | (cd subsurface_$VERSION ; tar xf - )
cd subsurface_$VERSION
rm -rf .git libdivecomputer/.git libgit2/.git marble-source/.git
echo $GITVERSION > .gitversion
echo $LIBDCREVISION > libdivecomputer/revision
-
-dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes -p subsurface_$VERSION
-rm debian/*.ex debian/*.EX debian/README.*
-cp ../subsurface/packaging/ubuntu/debian/control debian/control
-cp ../subsurface/packaging/ubuntu/debian/copyright debian/copyright
-cp ../subsurface/packaging/ubuntu/debian/rules debian/rules
-cp ../subsurface/packaging/ubuntu/debian/source.lintian-overrides debian/source.lintian-overrides
+# dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes -p subsurface_$VERSION
+# rm debian/*.ex debian/*.EX debian/README.*
+#
+#
+echo "creating source tar file"
+#
+tar cf - . | xz > ../subsurface_$VERSION.orig.tar.xz
+#
+#
+echo "preparint the debian directory"
+#
+export DEBEMAIL=dirk@hohndel.org
+mkdir -p debian
+cp -a packaging/ubuntu/debian .
+cp ../debian.changelog debian/changelog
# do something clever with changelog
-mv debian/changelog debian/autocl
-head -1 debian/autocl | sed -e 's/)/~trusty)/' -e 's/unstable/trusty/' > debian/changelog
-cat ../subsurface/packaging/ubuntu/debian/changelog >> debian/changelog
-tail -1 debian/autocl >> debian/changelog
-rm -f debian/autocl
+#mv debian/changelog debian/autocl
+#head -1 debian/autocl | sed -e 's/)/~trusty)/' -e 's/unstable/trusty/' > debian/changelog
+#cat ../subsurface/packaging/ubuntu/debian/changelog >> debian/changelog
+#tail -1 debian/autocl >> debian/changelog
+#rm -f debian/autocl
+
+dch -i -D trusty -M
+mv ~/src/debian.changelog ~/src/debian.changelog.previous
+cp debian/changelog ~/src/debian.changelog
debuild -S