From 9e2b9fa72c8dbaec5c623de799711224d150fb05 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 12 Aug 2020 19:36:14 +0200 Subject: [PATCH] Convert to deb-pkg target --- Makefile | 9 +++++++++ do_debian | 28 ---------------------------- 2 files changed, 9 insertions(+), 28 deletions(-) delete mode 100755 do_debian diff --git a/Makefile b/Makefile index c11c765..03f054f 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,15 @@ mypy: test: ./driver.py +deb-pkg: dist + mv relational_*.orig.tar.gz* /tmp + cd /tmp; tar -xf relational_*.orig.tar.gz + cp -r debian /tmp/relational/ + cd /tmp/relational/; dpkg-buildpackage --changes-option=-S + mkdir deb-pkg + mv /tmp/relational_* /tmp/python3-relational_*.deb deb-pkg + $(RM) -r /tmp/relational + .PHONY: dist dist: clean rm -rf /tmp/relational/ diff --git a/do_debian b/do_debian deleted file mode 100755 index 1f806a8..0000000 --- a/do_debian +++ /dev/null @@ -1,28 +0,0 @@ -#!/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