[librcs-perl] 08/11: Patch example script to sport a #!/usr/bin/perl shebang
Axel Beckert
abe at deuxchevaux.org
Wed Nov 15 04:10:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository librcs-perl.
commit 9834a99c590d8aed1a4826f17b8c186c3da58927
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Wed Nov 15 04:55:39 2017 +0100
Patch example script to sport a #!/usr/bin/perl shebang
Fixes lintian-warning example-wrong-path-for-interpreter.
---
debian/changelog | 2 +
debian/patches/fix_usr_local_bin_in_examples.patch | 148 +++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 151 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index dc1b443..0f904e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,8 @@ librcs-perl (1.05-5) UNRELEASED; urgency=low
* Switch to a minimal "dh $@" debian/rules file and compat level 10.
+ Update versioned debhelper build-dependency accordingly.
* Declare compliance with Debian Policy 4.1.1.
+ * Patch example script to sport a #!/usr/bin/perl shebang line instead
+ of referring to /usr/local/bin/perl.
-- gregor herrmann <gregoa at debian.org> Sun, 16 Nov 2008 20:46:33 +0100
diff --git a/debian/patches/fix_usr_local_bin_in_examples.patch b/debian/patches/fix_usr_local_bin_in_examples.patch
new file mode 100644
index 0000000..387107c
--- /dev/null
+++ b/debian/patches/fix_usr_local_bin_in_examples.patch
@@ -0,0 +1,148 @@
+Description: Fix lintian-warning example-wrong-path-for-interpreter
+Author: Axel Beckert <abe at debian.org>
+Forwarded: not-needed
+
+--- a/examples/access.pl
++++ b/examples/access.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Add users to access list.
+ #------------------------------------------
+--- a/examples/ci.pl
++++ b/examples/ci.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Check-in source file.
+ #------------------------------------------
+--- a/examples/co.pl
++++ b/examples/co.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Check-out source file.
+ #------------------------------------------
+--- a/examples/comments.pl
++++ b/examples/comments.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Access comments hash
+ #------------------------------------------
+--- a/examples/comments2.pl
++++ b/examples/comments2.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Access comments hash
+ #------------------------------------------
+--- a/examples/daterev.pl
++++ b/examples/daterev.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Test daterev method
+ #------------------------------------------
+--- a/examples/dates.pl
++++ b/examples/dates.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Access dates hash
+ #------------------------------------------
+--- a/examples/parse.pl
++++ b/examples/parse.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Parse RCS archive file.
+ #------------------------------------------
+--- a/examples/rcsclean.pl
++++ b/examples/rcsclean.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # rcsclean utility
+ #------------------------------------------
+--- a/examples/rcsdiff.pl
++++ b/examples/rcsdiff.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Use rcsdiff utility.
+ #------------------------------------------
+--- a/examples/revdate.pl
++++ b/examples/revdate.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Get revision date
+ #------------------------------------------
+--- a/examples/rlog.pl
++++ b/examples/rlog.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Use rlog utility.
+ #------------------------------------------
+--- a/examples/symbols.pl
++++ b/examples/symbols.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Test symrev method
+ #------------------------------------------
+--- a/examples/symrev.pl
++++ b/examples/symrev.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Test symrev method
+ #------------------------------------------
+--- a/examples/test1.pl
++++ b/examples/test1.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+
+ use strict;
+ use lib '.';
+--- a/examples/test2.pl
++++ b/examples/test2.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+
+ use strict;
+ use lib '.';
+--- a/examples/test3.pl
++++ b/examples/test3.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+
+ use strict;
+ use lib '.';
+--- a/examples/unlock.pl
++++ b/examples/unlock.pl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #------------------------------------------
+ # Unlock RCS file
+ #------------------------------------------
diff --git a/debian/patches/series b/debian/patches/series
index 81270b8..07038b9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
filenames_with_spaces.patch
+fix_usr_local_bin_in_examples.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/librcs-perl.git
More information about the Pkg-perl-cvs-commits
mailing list