commit | cb122ccd51ed370864270fcdb01c054421f0c2d3 | [log] [tgz] |
---|---|---|
author | Chetan Gaonker <chetang@calsoftlabs.com> | Tue May 10 10:58:34 2016 -0700 |
committer | Chetan Gaonker <chetang@calsoftlabs.com> | Tue May 10 10:58:34 2016 -0700 |
tree | c62f20cb3cd7f614ad508a31e3b8c5fc19a05693 | |
parent | cfcce780c6f4b9e835160d12f14d147925f49974 [diff] [blame] |
Apply shell shebang for python files before the copyright
diff --git a/apply_license.sh b/apply_license.sh index 91ef37c..a7a1061 100755 --- a/apply_license.sh +++ b/apply_license.sh
@@ -3,5 +3,8 @@ if ! grep -q Copyright $f; then cat COPYRIGHT.txt $f > $f.license.py mv $f.license.py $f + #prepend shebang for python + sed -i -e '/^\#\!\/usr\/bin/d' -e '1i\#\!/usr/bin/env python' $f + chmod +x $f fi -done \ No newline at end of file +done