diff options
Diffstat (limited to 't/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec')
5 files changed, 32 insertions, 0 deletions
diff --git a/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/postinst b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/postinst new file mode 100644 index 0000000..9438152 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +# This file should not be triggered by script-without-interpreter + +set -e + +true + +#DEBHELPER# diff --git a/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/postrm b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/postrm new file mode 100644 index 0000000..5a2a7e7 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/postrm @@ -0,0 +1,7 @@ +# This file should be triggered by script-without-interpreter + +set -e + +true + +#DEBHELPER# diff --git a/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/rules b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/rules new file mode 100755 index 0000000..84ab89a --- /dev/null +++ b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_installdeb: + dh_installdeb + gcc -o debian/$(shell dh_listpackages)/DEBIAN/preinst true.c diff --git a/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/fill-values b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/fill-values new file mode 100644 index 0000000..6958689 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: scripts-does-not-start-with-shebang +Description: Check for maintainer scripts that do not start with #! diff --git a/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/orig/true.c b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/orig/true.c new file mode 100644 index 0000000..8479e67 --- /dev/null +++ b/t/recipes/checks/scripts/scripts-does-not-start-with-shebang/build-spec/orig/true.c @@ -0,0 +1,5 @@ +int +main(void) +{ + return 0; +} |