summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2002-06-17 08:54:57 +0200
committerunknown <lenz@mysql.com>2002-06-17 08:54:57 +0200
commit952b5ec18d072d08289d2db65e733a9ce67946e1 (patch)
tree0379ea2e98696ed1c4137d37b7392b6931428e0a
parent25202b02312190409a07aad2238a51e64b5610b9 (diff)
downloadmariadb-git-952b5ec18d072d08289d2db65e733a9ce67946e1.tar.gz
Fixed Build-tools/mysql-copyright-2 to properly replace the copyright
header in x86 assemler files instead of eating the whole file Build-tools/mysql-copyright-2: Handle copyright headers in *-x86.s files correctly (they do not use C style comments)
-rwxr-xr-xBuild-tools/mysql-copyright-29
1 files changed, 7 insertions, 2 deletions
diff --git a/Build-tools/mysql-copyright-2 b/Build-tools/mysql-copyright-2
index 5aeb4bb81db..a0d30f308e5 100755
--- a/Build-tools/mysql-copyright-2
+++ b/Build-tools/mysql-copyright-2
@@ -89,13 +89,18 @@ sub add_copyright
elsif ($ARGV =~ /\.c$/ ||
$ARGV =~ /\.cc$/ ||
$ARGV =~ /\.h$/ ||
- $ARGV =~ /\.yy$/ ||
- $ARGV =~ /-x86\.s$/)
+ $ARGV =~ /\.yy$/)
{
$start_copyright="/* ";
$line_copyright= " ";
$end_copyright= " */";
}
+ elsif ($ARGV =~ /-x86\.s$/)
+ {
+ $start_copyright="# ";
+ $line_copyright= "# ";
+ $end_copyright= "";
+ }
elsif ($ARGV =~ /\.s$/)
{
$start_copyright="! ";