Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (14 sloc) 0.309 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash
# based on http://stackoverflow.com/a/151690/105571

find . -name "*.py" | while read i
do
  if ! grep -q Copyright $i
  then
    echo '__license__ = """' > $i.new
    cat LICENSE | tail -13 >> $i.new
    echo '"""' >> $i.new
    echo '' >> $i.new
    cat $i >> $i.new
    mv $i.new $i
  fi
done
Something went wrong with that request. Please try again.