summaryrefslogtreecommitdiff
path: root/Build-tools
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
commitf4b230a6c7c90903dd5437607c25b01b4dd528cd (patch)
tree0379ea2e98696ed1c4137d37b7392b6931428e0a /Build-tools
parentf3d9307262cdf84b07b210ea0d7f8e7d14fdeeb7 (diff)
downloadmariadb-git-f4b230a6c7c90903dd5437607c25b01b4dd528cd.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)
Diffstat (limited to 'Build-tools')
-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="! ";