aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-05-19 16:09:53 +0800
committersobomax <sobomax@FreeBSD.org>2000-05-19 16:09:53 +0800
commit8b4207e3b81c766f8acc0617707239538485bb83 (patch)
tree6bb71441bb6bd3fa566966c71485d1c0687a9038 /Tools/scripts
parent3cbbd46e723c457f6f769c0b5d60b2b0f9eb8bca (diff)
downloadfreebsd-ports-gnome-8b4207e3b81c766f8acc0617707239538485bb83.tar.gz
freebsd-ports-gnome-8b4207e3b81c766f8acc0617707239538485bb83.tar.zst
freebsd-ports-gnome-8b4207e3b81c766f8acc0617707239538485bb83.zip
Make getpr work for remote committers as well.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/getpr9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/scripts/getpr b/Tools/scripts/getpr
index e7b703bc607f..c9951cf10bbc 100755
--- a/Tools/scripts/getpr
+++ b/Tools/scripts/getpr
@@ -8,17 +8,22 @@
use strict;
my $pr = shift;
+my $user = shift;
if ($pr eq "") {
- print STDERR "getpr prnum\n";
+ print STDERR "getpr prnum [username]\n";
exit 1
}
+if ($user ne "") {
+ $user = "$user@";
+}
+
# get the PR off of freefall
open(D, "> $pr") or die "$pr: $!";
open(PATCH, "> pr-patch") or die "pr-patch: $!";
-open(PR, " ssh freefall query-pr -F $pr | ") or die $!;
+open(PR, " ssh ${user}freefall.freebsd.org query-pr -F $pr | ") or die $!;
my $fix = "";
my $infix = 0;