aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2012-10-30 18:17:53 +0800
committerehaupt <ehaupt@FreeBSD.org>2012-10-30 18:17:53 +0800
commit6f27586aeca8bca1f92b3801c9d699fec2996beb (patch)
treeb71907d422891f7da2bb47cb1aa6f4b1c7e841ce /Tools
parent206405996866759dce6f35ec0414d1f60ee01676 (diff)
downloadfreebsd-ports-gnome-6f27586aeca8bca1f92b3801c9d699fec2996beb.tar.gz
freebsd-ports-gnome-6f27586aeca8bca1f92b3801c9d699fec2996beb.tar.zst
freebsd-ports-gnome-6f27586aeca8bca1f92b3801c9d699fec2996beb.zip
Use the 'Created by:' header option per default rather than the RCS only
header. Suggested by: adamw Feature safe: yes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/convert-makefile-header.pl11
1 files changed, 6 insertions, 5 deletions
diff --git a/Tools/scripts/convert-makefile-header.pl b/Tools/scripts/convert-makefile-header.pl
index ad146ca7c580..db5414595268 100755
--- a/Tools/scripts/convert-makefile-header.pl
+++ b/Tools/scripts/convert-makefile-header.pl
@@ -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";