aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2013-04-24 19:12:52 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2013-04-24 19:12:52 +0000
commit6f38e7ac9a713e7fcda7762f31db43d4777edf1b (patch)
tree9d82fa4c45767e61dca885350d9bedc90402c334 /Tools
parented3f85f18a1caaa3ebaa1ba882d1d1212f97189c (diff)
downloadports-6f38e7ac9a713e7fcda7762f31db43d4777edf1b.tar.gz
ports-6f38e7ac9a713e7fcda7762f31db43d4777edf1b.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/convert-makefile-header.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/convert-makefile-header.pl b/Tools/scripts/convert-makefile-header.pl
index d23eec1abd83..751fc95da6a1 100755
--- a/Tools/scripts/convert-makefile-header.pl
+++ b/Tools/scripts/convert-makefile-header.pl
@@ -24,6 +24,7 @@ Usage: $bn [OPTION] PORT
(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
+ -N, --nopreserve don't preserve original file
_ENOUSAGE
}
@@ -40,7 +41,6 @@ sub get_nice_people() {
'beat',
'brooks',
'crees',
- 'ehaupt',
'eadler',
'flo',
'flz',
@@ -91,7 +91,7 @@ MAIN: {
# get options
my $opt={};
my $nice_people=get_nice_people();
- GetOptions($opt, 'help|h', 'rcsonly|r', 'createdby|c', 'nowrite|n');
+ GetOptions($opt, 'help|h', 'rcsonly|r', 'createdby|c', 'nowrite|n', 'nopreserve|N');
if(defined($opt->{help})) {
usage();
@@ -165,7 +165,7 @@ MAIN: {
if(not defined($opt->{nowrite})) {
# move new Makefile
- `mv $mf $mf.orig`;
+ `mv $mf $mf.orig` if(not defined($opt->{nopreserve}));
`mv $mf.tmp_header_rename $mf`;
print STDERR "$mf converted.\n";
}