diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
commit | ea314d2f45c40a006c0104157013ab4b857f665f (patch) | |
tree | 3ef2971cb3675c318b8d9effd987854ad3f6d3e8 /scripts/t/dpkg_buildpackage/hook | |
parent | Initial commit. (diff) | |
download | dpkg-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-x | scripts/t/dpkg_buildpackage/hook | 25 |
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 $*" |