summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/am4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/am b/bin/am
index 5046d3d0a..14b6d8638 100755
--- a/bin/am
+++ b/bin/am
@@ -23,12 +23,14 @@ my $fhint="version.log";
# Default values, change or use environment variables instead.
my $copy="anope";
+my $svnuser="";
my $svnpath="/usr/bin";
my $svnroot="svn://zero.org/repos/$copy";
my $editor="/usr/bin/vi";
# Environment variables SVNBINDIR and SVNROOT override the above
# hardcoded values.
+$svnuser="$ENV{SVNUSER}" if ($ENV{SVNUSER});
$svnpath="$ENV{SVNBINDIR}" if ($ENV{SVNBINDIR});
$svnroot="$ENV{SVNROOT}" if ($ENV{SVNROOT});
$editor="$ENV{EDITOR}" if ($ENV{EDITOR});
@@ -372,7 +374,7 @@ NOTES : ";
close(OUT);
print "*** Starting the upload...\n\n";
- my $rval=system("$svn commit $dst --message '$svn_comment'");
+ my $rval=system("$svn commit $dst --username='$svnuser' --message '$svn_comment'");
if ( $rval ) {
print "*** Error: Unable to complete commit. Rolling back....\n\n";
system("$svn revert $ctrlfile");