Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

add license headers and file #11

Closed
mwhooker opened this issue Jul 25, 2012 · 0 comments
Closed

add license headers and file #11

mwhooker opened this issue Jul 25, 2012 · 0 comments
Milestone

Comments

@mwhooker
Copy link
Contributor

we can use this script

#!/bin/bash
# based on http://stackoverflow.com/a/151690/105571


find . -name  "*.py" | while read i
do
  if ! grep -q Copyright $i
  then
    echo '"""' > $i.new
    cat LICENSE | tail -13 >> $i.new
    echo '"""' >> $i.new
    echo '' >> $i.new
    cat $i >> $i.new
    mv $i.new $i
  fi
done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant