svn commit: r317968 - head/Tools/scripts

Chris Rees crees at FreeBSD.org
Sun May 12 16:17:22 UTC 2013


Author: crees
Date: Sun May 12 16:17:21 2013
New Revision: 317968
URL: http://svnweb.freebsd.org/changeset/ports/317968

Log:
  Fix -c option
  
  PR:		ports/178193
  Submitted by:	tota

Modified:
  head/Tools/scripts/addport

Modified: head/Tools/scripts/addport
==============================================================================
--- head/Tools/scripts/addport	Sun May 12 16:16:56 2013	(r317967)
+++ head/Tools/scripts/addport	Sun May 12 16:17:21 2013	(r317968)
@@ -251,10 +251,11 @@ foreach my $thisdir (@dirs) {
 	# Do commitfile checking but only if the user did not request automatic filling.
 	if (!$autofill) {
 		if (-f $c) {
-			system("$mv $c $tmpdir/commitfile") or errx(1, "Oops, can't move commitfile!");
+			system("$mv $c $tmpdir/commitfile") && errx(1, "Oops, can't move 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";
+			$commitfile = "--file $tmpdir/commitfile";
 		}
 	} else {
 		## Set up the autofill file.


More information about the svn-ports-all mailing list