diff options
author | crees <crees@FreeBSD.org> | 2012-08-10 18:49:36 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2012-08-10 18:49:36 +0800 |
commit | 1f3130015adde1d00776306d1f0f0798186fb980 (patch) | |
tree | 11e5474f2370051f242fac7f5743f04585182288 /Tools | |
parent | 21041169ee566e1de4234722bc896b6e6aac8c52 (diff) | |
download | freebsd-ports-gnome-1f3130015adde1d00776306d1f0f0798186fb980.tar.gz freebsd-ports-gnome-1f3130015adde1d00776306d1f0f0798186fb980.tar.zst freebsd-ports-gnome-1f3130015adde1d00776306d1f0f0798186fb980.zip |
Don't replace - with _ in category variable.
This was required with CVS, since the category was checked out as a module, but
the directory name is used with svn.
For example:
pcvs co ports_ports_mgmt
svn co $ports/head/ports-mgmt
Submitted by: swills
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index a13db39f9d3c..ab8583e04b1e 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -245,8 +245,7 @@ foreach my $thisdir (@dirs) { } while (prompt("Is the new category $category OK? ")); } } - chomp(my $svn_category = $category); - $svn_category =~ s/-/_/g; + chomp $category; # Do commitfile checking but only if the user did not request automatic filling. if (!$autofill) { @@ -321,7 +320,7 @@ foreach my $thisdir (@dirs) { # let's get our hands dirty. if (! -d $category) { - system("svn co --depth files $repo/$svn_category $category") && errx(1, "can't get temporary category directory, aborting."); + system("svn co --depth files $repo/$category $category") && errx(1, "can't get temporary category directory, aborting."); } chdir $category or err(1,"$category"); system("$cp -PRp $thisdir ."); |