blob: fee98904afa5dcd4e5710f25849dfa6f63449a60 [file] [log] [blame]
#!/usr/bin/env bash
for f in `find . -name "*.py"`; do
if ! grep -q Copyright $f; then
cat COPYRIGHT.txt $f > $f.license.py
mv $f.license.py $f
if grep -q "^\#\!/usr/bin" $f; then
#prepend shebang for python
sed -i -e '/^\#\!\/usr\/bin/d' -e '1i\#\!/usr/bin/env python' $f
chmod +x $f
fi
fi
done