summaryrefslogtreecommitdiffstats
path: root/scripts/t/dpkg_buildpackage/hook
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:35:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:35:28 +0000
commitea314d2f45c40a006c0104157013ab4b857f665f (patch)
tree3ef2971cb3675c318b8d9effd987854ad3f6d3e8 /scripts/t/dpkg_buildpackage/hook
parentInitial commit. (diff)
downloaddpkg-ea314d2f45c40a006c0104157013ab4b857f665f.tar.xz
dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.zip
Adding upstream version 1.22.4.upstream/1.22.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/t/dpkg_buildpackage/hook')
-rwxr-xr-xscripts/t/dpkg_buildpackage/hook25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/t/dpkg_buildpackage/hook b/scripts/t/dpkg_buildpackage/hook
new file mode 100755
index 0000000..9623311
--- /dev/null
+++ b/scripts/t/dpkg_buildpackage/hook
@@ -0,0 +1,25 @@
+#!/bin/sh
+self="$(basename "$0")"
+from="$(dirname "$0")"
+case "$DPKG_BUILDPACKAGE_HOOK_NAME" in
+source)
+ echo "$self: source-opts=$DPKG_BUILDPACKAGE_HOOK_SOURCE_OPTIONS"
+ ;;
+build)
+ echo "$self: build-target=$DPKG_BUILDPACKAGE_HOOK_BUILD_TARGET"
+ ;;
+binary)
+ echo "$self: binary-target=$DPKG_BUILDPACKAGE_HOOK_BINARY_TARGET"
+ ;;
+buildinfo)
+ echo "$self: buildinfo-opts=$DPKG_BUILDPACKAGE_HOOK_BUILDINFO_OPTIONS" \
+ | perl -p -E "s{\Q$from\E}{<ROOT>}g"
+ ;;
+changes)
+ echo "$self: changes-opts=$DPKG_BUILDPACKAGE_HOOK_CHANGES_OPTIONS"
+ ;;
+check)
+ echo "$self: check-opts=$DPKG_BUILDPACKAGE_HOOK_CHECK_OPTIONS"
+ ;;
+esac
+echo "$self: n=$DPKG_BUILDPACKAGE_HOOK_NAME $*"