blob: 96233113ad0d24b5c6826466592034365c003f9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 $*"
|