diff options
author | petef <petef@FreeBSD.org> | 2002-11-13 23:00:00 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2002-11-13 23:00:00 +0800 |
commit | f875b7ff227c4bbd5196a5e4cb1a93c8433c80f0 (patch) | |
tree | a23d94659ae7cca8043fbfef4d8ee69b7b536a74 /Tools | |
parent | 8d60d1857f4487a4fdab933b307bfd4c6913b595 (diff) | |
download | freebsd-ports-graphics-f875b7ff227c4bbd5196a5e4cb1a93c8433c80f0.tar.gz freebsd-ports-graphics-f875b7ff227c4bbd5196a5e4cb1a93c8433c80f0.tar.zst freebsd-ports-graphics-f875b7ff227c4bbd5196a5e4cb1a93c8433c80f0.zip |
Use 'cvs ci -F ...' instead of setting the log file with EDITOR="cp ...".
This fixes addport for me on -stable (cvs was erroring out), and also
fixes addport when you have the EDITOR environment variable set.
Approved by: will
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index af26584a940..845ac97a89d 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -219,7 +219,6 @@ foreach my $thisdir (@dirs) { if (!$autofill) { if (-f $c) { system("$mv $c $tmpdir/commitfile") or errx(1, "Oops, can't move commitfile!"); - $commitfile = "EDITOR=\"cp $tmpdir/commitfile\""; print "\nRemember, you asked to use a commit file to read for the commit log.\n"; print "This means you'll get a message saying the log message was unchanged or\n"; print "not specified. Just tell it to continue and it will be committed.\n\n"; @@ -290,7 +289,6 @@ foreach my $thisdir (@dirs) { print "\nRemember, you asked to use a commit file to read for the commit log.\n"; print "This means you'll get a message saying the log message was unchanged or\n"; print "not specified. Just tell it to continue and it will be committed.\n\n"; - $commitfile = "EDITOR=\"cp $tmpdir/commitfile\""; } print "We're ready to commit.\n"; @@ -341,7 +339,7 @@ foreach my $thisdir (@dirs) { # commit the actual port. chdir "$tmpdir/$category" or err(1, "$tmpdir/$category"); - system("$commitfile $cvs $n ci Makefile $portname") && errx(1, "cvs commit failed, aborting."); + system("$cvs $n ci -F $tmpdir/commitfile Makefile $portname") && errx(1, "cvs commit failed, aborting."); if (!$nomodules && ($n ne "-n")) { system("$sshmod env CVSROOT=$repo $perl /usr/local/bin/modulesupdate $module ports/$category/$portname") && errx(1, "adding port to modules failed, aborting."); } |