summaryrefslogtreecommitdiff
path: root/ext/mysql/libmysql
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/libmysql')
-rwxr-xr-xext/mysql/libmysql/fix_copyright26
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/mysql/libmysql/fix_copyright b/ext/mysql/libmysql/fix_copyright
new file mode 100755
index 0000000000..b68234d3aa
--- /dev/null
+++ b/ext/mysql/libmysql/fix_copyright
@@ -0,0 +1,26 @@
+#! /bin/sh
+#
+# This script removes the Copyright messages and inserts
+# Copyright Abandoned messages.
+#
+
+
+if test -z "$1"; then
+ echo "Usage: $0 files"
+ echo
+ echo 'Usual parameters: *.c *.h'
+ exit 1
+fi
+
+
+for i in $@; do
+ sed \
+ -e '/Copyright.*MySQL.*/,/MA 02111/c\
+/* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB \
+ This file is public domain and comes with NO WARRANTY of any kind */' \
+ -e '/Copyright (C) 199.*/,/For a more info/c\
+/* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB \
+ This file is public domain and comes with NO WARRANTY of any kind */' \
+ < $i > tmp
+ cp tmp $i
+done