From: Sascha Schumann Date: Thu, 24 Aug 2000 14:18:36 +0000 (+0000) Subject: Script for replacing the copyright messages X-Git-Tag: php-4.0.2~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4dd261436c5fcee38991ab9e3fc8cc2ca3c9aac;p=php Script for replacing the copyright messages --- 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