summaryrefslogtreecommitdiff
path: root/ext/mysql/libmysql
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-08-24 14:18:36 +0000
committerSascha Schumann <sas@php.net>2000-08-24 14:18:36 +0000
commitd4dd261436c5fcee38991ab9e3fc8cc2ca3c9aac (patch)
tree7e5637c2b9f78d6cb1c4fe90862a1b23bcc07d0b /ext/mysql/libmysql
parent9c86c11abfac4ff2aed41bf63506b8e60b13f0c7 (diff)
downloadphp-git-d4dd261436c5fcee38991ab9e3fc8cc2ca3c9aac.tar.gz
Script for replacing the copyright messages
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