summaryrefslogtreecommitdiff
path: root/build-deb-from-git
blob: 91f43457da1b5e12acc9daad3e06b131c6e40544 (plain)
1
2
3
4
5
6
7
8
9
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