]> granicus.if.org Git - php/commitdiff
Script for replacing the copyright messages
authorSascha Schumann <sas@php.net>
Thu, 24 Aug 2000 14:18:36 +0000 (14:18 +0000)
committerSascha Schumann <sas@php.net>
Thu, 24 Aug 2000 14:18:36 +0000 (14:18 +0000)
ext/mysql/libmysql/fix_copyright [new file with mode: 0755]

diff --git a/ext/mysql/libmysql/fix_copyright b/ext/mysql/libmysql/fix_copyright
new file mode 100755 (executable)
index 0000000..b68234d
--- /dev/null
@@ -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