root/trunk/djangoid/fix_headers.sh
| Revision 10, 438 bytes (checked in by nicolast, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/bash |
| 2 | HEADER_FILE="header.gpl" |
| 3 | EOL="#EOL" |
| 4 | |
| 5 | for sf in `find . -iname "*.py" \! -regex "\./openid/.*"`; do |
| 6 | if grep ${EOL} ${sf} > /dev/null; then |
| 7 | echo "${sf}: got header" |
| 8 | else |
| 9 | echo -n "${sf}: adding header..." |
| 10 | mv ${sf} ${sf}.noheader |
| 11 | cat ${HEADER_FILE} ${sf}.noheader > ${sf} |
| 12 | rm ${sf}.noheader |
| 13 | echo "done" |
| 14 | fi |
| 15 | done |
Note: See TracBrowser for help on using the browser.
