Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2012 10:17:54 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306665 - head/Tools/scripts
Message-ID:  <201210301017.q9UAHsVf068732@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue Oct 30 10:17:53 2012
New Revision: 306665
URL: http://svn.freebsd.org/changeset/ports/306665

Log:
  Use the 'Created by:' header option per default rather than the RCS only
  header.
  
  Suggested by:	adamw
  Feature safe:	yes

Modified:
  head/Tools/scripts/convert-makefile-header.pl

Modified: head/Tools/scripts/convert-makefile-header.pl
==============================================================================
--- head/Tools/scripts/convert-makefile-header.pl	Tue Oct 30 08:47:53 2012	(r306664)
+++ head/Tools/scripts/convert-makefile-header.pl	Tue Oct 30 10:17:53 2012	(r306665)
@@ -19,8 +19,9 @@ sub usage() {
 	my $bn=basename($0);
 	print(<< "_ENOUSAGE");
 Usage: $bn [OPTION] PORT
-  -c                    use 'created by' header
-  -d                    use simple \$FreeBSD\$ RCS string header (default)
+  -c                    use 'created by' header (default)
+  -r                    use simple \$FreeBSD\$ RCS string header
+                        (make sure the original creator is ok with this)
   -h, --help            this help
   -n, --nowrite         don't change file, just print what would be done
 
@@ -43,7 +44,7 @@ sub get_creator($) {
 MAIN: {
 	# get options
 	my $opt={};
-	GetOptions($opt, 'help|h', 'default|d', 'createdby|c', 'nowrite|n');
+	GetOptions($opt, 'help|h', 'rcsonly|r', 'createdby|c', 'nowrite|n');
 
 	if(defined($opt->{help})) {
 		usage();
@@ -81,9 +82,9 @@ MAIN: {
 			}
 
 			# write new Makefile
-			if(defined($opt->{default}) || !defined($opt->{createdby})) {
+			if(defined($opt->{rcsonly})) {
 				print $outh "# \$FreeBSD\$\n";
-			} elsif(defined($opt->{createdby})) {
+			} elsif(defined($opt->{createdby}) || !defined($opt->{rcsonly})) {
 				my $creator=get_creator(\@header);
 				if(defined($creator)) {
 					print $outh "# Created by: $creator\n";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210301017.q9UAHsVf068732>