From 0d03db771b48f7d90cf96560c32048001809e84f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 10 Jan 2018 16:08:04 +0200 Subject: Add: a bunch of new scripts --- build-deb-from-git | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 build-deb-from-git (limited to 'build-deb-from-git') diff --git a/build-deb-from-git b/build-deb-from-git new file mode 100755 index 0000000..91f4345 --- /dev/null +++ b/build-deb-from-git @@ -0,0 +1,10 @@ +#!/bin/sh + +set -eu + +pkg="$(dpkg-parsechangelog -S Source)" +version="$(dpkg-parsechangelog -S Version)" +upversion="$(echo "$version" | sed 's/-.*//')" +origtgz="../${pkg}_${upversion}.orig.tar.xz" +git archive HEAD | xz > "$origtgz" +debuild -us -uc -- cgit v1.2.1