aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-12-15 23:16:15 +0800
committereadler <eadler@FreeBSD.org>2012-12-15 23:16:15 +0800
commit51110b72cd99967ff4cd4a7438b22861880651f6 (patch)
treefa936a4ab0f0df681377100f5d807d43c35cc8cd /Tools/scripts
parenta79991241cdd87043caf5d0a7564faa4b4eaf5bf (diff)
downloadfreebsd-ports-gnome-51110b72cd99967ff4cd4a7438b22861880651f6.tar.gz
freebsd-ports-gnome-51110b72cd99967ff4cd4a7438b22861880651f6.tar.zst
freebsd-ports-gnome-51110b72cd99967ff4cd4a7438b22861880651f6.zip
Teach convert-makefile-header about the mcom header line.
Don't remove this when doing the conversion.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/convert-makefile-header.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tools/scripts/convert-makefile-header.pl b/Tools/scripts/convert-makefile-header.pl
index db5414595268..8a97fdde3af2 100755
--- a/Tools/scripts/convert-makefile-header.pl
+++ b/Tools/scripts/convert-makefile-header.pl
@@ -41,6 +41,17 @@ sub get_creator($) {
return $creator;
}
+sub get_mcom($) {
+ my $header=shift;
+ my $mcom;
+ for my $line (@$header) {
+ if ($line=~m'\$MCom:'i) {
+ return $line;
+ }
+ }
+ return "";
+}
+
MAIN: {
# get options
my $opt={};
@@ -86,12 +97,14 @@ MAIN: {
print $outh "# \$FreeBSD\$\n";
} elsif(defined($opt->{createdby}) || !defined($opt->{rcsonly})) {
my $creator=get_creator(\@header);
+ my $mcom=get_mcom(\@header);
if(defined($creator)) {
print $outh "# Created by: $creator\n";
} else {
print STDERR "$mf creator not found. Reverting to RCS string only.\n";
}
print $outh "# \$FreeBSD\$\n";
+ print $outh $mcom;
}
for my $line (@makefile) {