aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-05-19 08:09:53 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-05-19 08:09:53 +0000
commit9a170ebda5845410e7a791ca60554bc62ab260f3 (patch)
tree8a1e234c2b89a3494ed38efe92303196dd097198 /Tools
parent389e0ff29f02868f7b9118c3305cdb61da669481 (diff)
downloadports-9a170ebda5845410e7a791ca60554bc62ab260f3.tar.gz
ports-9a170ebda5845410e7a791ca60554bc62ab260f3.zip
Notes
Diffstat (limited to 'Tools')
-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;