diff mbox series

[v3,1/3] Remove hardcoding from scripts/add_maintainers.pl

Message ID 0944333a4a0b503789d10afa63f8229bd0441290.1567195654.git-series.lars.kurth@citrix.com (mailing list archive)
State Superseded
Headers show
Series Allow get_maintainer.pl / add_maintainers.pl scripts to be called outside of xen.git | expand

Commit Message

Lars Kurth Aug. 30, 2019, 8:09 p.m. UTC
Instead of using a hardcoded location, inherit the
location from $0

Signed-off-by: Lars Kurth <lars.kurth@citrix.com>
---
 scripts/add_maintainers.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/add_maintainers.pl b/scripts/add_maintainers.pl
index 09e9f66..5a6d0f6 100755
--- a/scripts/add_maintainers.pl
+++ b/scripts/add_maintainers.pl
@@ -26,9 +26,9 @@  sub insert ($$$$);
 sub hastag ($$);
 
 # Tool Variables
-my $get_maintainer      = "./scripts/get_maintainer.pl";
-
 my $tool = $0;
+my $get_maintainer = $tool;
+$get_maintainer =~ s/add_maintainers/get_maintainer/;
 my $usage = <<EOT;
 OPTIONS:
 --------