#!/bin/bash cat > copyblob.txt < // // Alternative licensing terms are available from the licensor. // For commercial licensing, see or contact // Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato, // CA 94945, U.S.A., +1(415)492-9861, for further information. EOF for F in $(find platform source include -name '*.[ch]' -or -name '*.java' -or -name '*.js') do if grep -q 'Copyright\|automatically generated file\|file was generated by\|DO NOT EDIT THIS FILE\|public domain' $F then touch . else echo $F cat copyblob.txt $F > copyblob-tmp.txt && mv copyblob-tmp.txt $F fi done