diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/executable/scripts-exec/build-spec/debian/rules | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/executable/scripts-exec/build-spec/debian/rules')
-rwxr-xr-x | t/recipes/checks/executable/scripts-exec/build-spec/debian/rules | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/recipes/checks/executable/scripts-exec/build-spec/debian/rules b/t/recipes/checks/executable/scripts-exec/build-spec/debian/rules new file mode 100755 index 0000000..ef51115 --- /dev/null +++ b/t/recipes/checks/executable/scripts-exec/build-spec/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +TMP:=debian/$(shell dh_listpackages)/ +%: + dh $@ + +override_dh_fixperms: + dh_fixperms + chmod 0755 $(TMP)/usr/bin/01-normal-script + chmod 0644 $(TMP)/usr/bin/02-no-exec-script + rm -f $(TMP)/usr/bin/03-hardlink-script + ln $(TMP)/usr/bin/01-normal-script $(TMP)/usr/bin/03-hardlink-script + chmod 0755 $(TMP)/usr/bin/04-not-a-script + +override_dh_auto_build: + mkdir man + for FILE in *-script ; do \ + sed s/@SCRIPT@/$$FILE/g script.pod | \ + pod2man --name="$$(echo "$$FILE" | tr a-z A-Z )" \ + --section=1 > man/$$FILE.1 ; \ + done + |