diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-05-19 08:09:53 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-05-19 08:09:53 +0000 |
commit | 8b4207e3b81c766f8acc0617707239538485bb83 (patch) | |
tree | 6bb71441bb6bd3fa566966c71485d1c0687a9038 /Tools/scripts | |
parent | 3cbbd46e723c457f6f769c0b5d60b2b0f9eb8bca (diff) | |
download | FreeBSD-ports-8b4207e3b81c766f8acc0617707239538485bb83.zip FreeBSD-ports-8b4207e3b81c766f8acc0617707239538485bb83.tar.gz |
Make getpr work for remote committers as well.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/getpr | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/scripts/getpr b/Tools/scripts/getpr index e7b703b..c9951cf 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; |