]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
scripts/add_maintainers.pl: Remove hardcoding
authorLars Kurth <lars.kurth@citrix.com>
Fri, 30 Aug 2019 17:18:16 +0000 (18:18 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 12 Sep 2019 16:19:34 +0000 (17:19 +0100)
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>
scripts/add_maintainers.pl

index 09e9f6609fa72dcbb55db80486c058af8f8a70f9..5a6d0f631b80f3a703fdef36be22e2fb52f74b82 100755 (executable)
@@ -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:
 --------