From ada4f5084309fb21e60e069a828472d2c0ca4a36 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sat, 19 Aug 2017 09:10:46 +0200 Subject: [PATCH] do_debian script To make a debian release --- do_debian | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 do_debian diff --git a/do_debian b/do_debian new file mode 100755 index 0000000..1f806a8 --- /dev/null +++ b/do_debian @@ -0,0 +1,28 @@ +#!/bin/sh + +# Create archive +make clean +make release + +# Put archive in temp directory +T=$(mktemp -d) +mv *.orig.* $T + +# Copy debian directory +git stash +git checkout debian +cp -r debian $T +git checkout - +git stash pop + +# Uncompress archive +cd $T +tar -xvvf *.tar.gz +mv debian relational + +# Build package +cd relational +dpkg-buildpackage +lintian -E --pedantic ../*.changes + +echo $T