diff mbox series

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

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

Commit Message

Lars Kurth Sept. 4, 2019, 11:30 a.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(-)

Comments

Julien Grall Sept. 10, 2019, 3:17 p.m. UTC | #1
Hi Lars,

On 9/4/19 12:30 PM, Lars Kurth wrote:
> Instead of using a hardcoded location, inherit the
> location from $0
> 
> Signed-off-by: Lars Kurth <lars.kurth@citrix.com>

Acked-by: Julien Grall <julien.grall@arm.com>

Cheers,
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:
 --------