From 5fe940663e7129449034007ae3735858e67966b3 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 5 Apr 2021 19:48:27 +0300 Subject: build: drop build-deb script Our CI no longer needs it so it's cruft. --- build-deb | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100755 build-deb diff --git a/build-deb b/build-deb deleted file mode 100755 index 369dafa..0000000 --- a/build-deb +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# -# Build a Debian .deb package. - -set -euo pipefail - -cleanup() -{ - rm -rf "$tmpdir" -} - -# Get location where resulting files should be copied. -if [ "$#" != 1 ] -then - echo "ERROR: must give location where build package should be copied as argument" 1>&2 - exit 1 -fi -target="$(cd "$1"; pwd)" - -# Create a temporary directory and arrange for it to be deleted at the -# end. -tmpdir="$(mktemp -d)" -echo "$tmpdir" -trap cleanup EXIT - -# Get name and version of source package. -name="$(dpkg-parsechangelog -SSource)" -version="$(dpkg-parsechangelog -SVersion)" - -# Get upstream version: everythin before the last dash. -uv="$(echo "$version" | sed 's/-[^-]*$//')" -orig="${name}_${uv}.orig.tar.xz" - -# Build the package in a temporary diretory. -git archive HEAD | xz > "$tmpdir/$orig" -cd "$tmpdir" -mkdir src -tar -C src -xf "$orig" -cd src -dpkg-buildpackage -us -uc - -# Copy the results to the desired location. -cp ../*_* "$target" -- cgit v1.2.1