btstack/tools/addCopyright.sh

11 lines
194 B
Bash
Raw Normal View History

#!/bin/sh
for i in `find . -name "*.h"` `find . -name "*.m"` `find . -name "*.c"`
do
if ! grep -q Copyright $i
then
echo Fixing $i
cat COPYING $i >$i.new && mv $i.new $i
fi
done