diff options
Diffstat (limited to 'pre-run.sh')
-rw-r--r-- | pre-run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,9 +7,9 @@ python manage.py inspectdb > troggle-inspectdb.py echo "" # count non-blank lines of python and template HTML code # includes all variants of settings.py files -find . -name \*.html -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v "0$" | awk -F ":" '{ sum +=$2; print $2, $1; } END {print sum}'| sort -n > lines-of-templates.txt +find . -name \*.html -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v ":0$" | awk -F ":" '{ sum +=$2; print $2, $1; } END {print sum}'| sort -n > lines-of-templates.txt -find . -name \*.py -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v "0$" | awk -F ":" '{ sum +=$2; print $2, $1; } END {print sum}'| sort -n > lines-of-python.txt +find . -name \*.py -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v ":0$" | grep -v "/migrations/" |grep -v "troggle-inspectdb.py"| awk -F ":" '{ sum +=$2; print $2, $1; } END {print sum}'| sort -n > lines-of-python.txt echo `tail -1 lines-of-python.txt` non-comment lines of python. # This deletes the database so must run after generating troggle-inspectdb.py |