diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 08:03:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 08:03:40 +0000 |
commit | 6a254b9c2391d68199836601525220b5c5f8c0db (patch) | |
tree | d1e96c6ffb5ba431feee7e953a5ed15e56098248 /debian/bin/gbp-postexport-hook | |
parent | Adding upstream version 20200122. (diff) | |
download | firmware-free-debian/20200122-4.tar.xz firmware-free-debian/20200122-4.zip |
Adding debian version 20200122-4.debian/20200122-4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/bin/gbp-postexport-hook')
-rwxr-xr-x | debian/bin/gbp-postexport-hook | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/bin/gbp-postexport-hook b/debian/bin/gbp-postexport-hook new file mode 100755 index 0000000..21321a8 --- /dev/null +++ b/debian/bin/gbp-postexport-hook @@ -0,0 +1,23 @@ +#!/bin/sh -eu + +if [ "${CI}" = true ]; then + # Install required packages for gencontrol.py + linux_support_name="$(debian/rules linux-support-name)" + apt-get install -y --no-install-recommends "$linux_support_name" python3 + + # Fudge source version *before* gencontrol.py + sed -i -e '1 s/)/+salsaci)/' debian/changelog +fi + +# Create temporary log +log="$(mktemp)" +trap 'rm -f "$log"' EXIT + +# Invoke debian/control-real rule and log output +rc=0 +debian/rules debian/control-real >"$log" 2>&1 || rc=$? +cat "$log" + +# Check for success message and error code +test $rc = 2 +grep -q 'been generated SUCCESSFULLY' "$log" |