summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-04-03 05:35:27 +0000
committerribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-04-03 05:35:27 +0000
commitb67196447f4f2c5eda6abf9ed97dc9c3a02c8fc4 (patch)
tree39509941ad68b1d0b8f85d92323113f893fe0986 /bin
parent3e7ce67993960a7a3b6306c26d9afc22ed4a377d (diff)
BUILD : 1.7.0 (26) BUGS : none NOTES : Testing svn access with a new am script.
git-svn-id: svn://svn.anope.org/anope/trunk@26 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@17 5417fbe8-f217-4b02-8779-1006273d7864
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");