17def639d795b5619bc3be47e66c622f54749ae1
configuration/linecount.sh
| ... | ... | @@ -1,2 +1,9 @@ |
| 1 | 1 | #!/bin/sh |
| 2 | -wc --total=only -l `find com.sap.* */com.sap.* -type f \( -name '*.java' -o -name '*.gwt.xml' -o -name '*.ini' -o -name '*.html' -o -name '*.css' -o -name '*.gss' \) \! -ipath '*/generated/*' \! -ipath '*/gen/*' \! -ipath '*/bin/*' \! -ipath '*/generated-sources/*' \! -ipath '*/.generated/*' \! -name R.java \! -ipath './java/com.sap.sailing.gwt.ui/com.sap.sailing.gwt.*' 2>/dev/null` |
|
| 2 | +all=$( wc --total=only -l `find com.sap.* */com.sap.* -type f \( -name '*.java' -o -name '*.gwt.xml' -o -name '*.ini' -o -name '*.html' -o -name '*.css' -o -name '*.gss' \) \! -ipath '*/generated/*' \! -ipath '*/gen/*' \! -ipath '*/bin/*' \! -ipath '*/generated-sources/*' \! -ipath '*/.generated/*' \! -name R.java \! -ipath './java/com.sap.sailing.gwt.ui/com.sap.sailing.gwt.*' 2>/dev/null` ) |
|
| 3 | +gwt_files=`find *.gwt.* */*.gwt.* -type f \( -name '*.java' -o -name '*.gwt.xml' -o -name '*.ini' -o -name '*.html' -o -name '*.css' -o -name '*.gss' \) \! -ipath '*/generated/*' \! -ipath '*/gen/*' \! -ipath '*/bin/*' \! -ipath '*/generated-sources/*' \! -ipath '*/.generated/*' \! -name R.java \! -ipath './java/com.sap.sailing.gwt.ui/com.sap.sailing.gwt.*' 2>/dev/null` |
|
| 4 | +if [ -n "${gwt_files}" ]; then |
|
| 5 | + gwt=$( wc --total=only -l ${gwt_files} ) |
|
| 6 | +else |
|
| 7 | + gwt=0 |
|
| 8 | +fi |
|
| 9 | +echo "${gwt} ${all}" |
configuration/linecount_per_month.sh
| ... | ... | @@ -1,4 +1,5 @@ |
| 1 | 1 | #!/bin/bash |
| 2 | +cp "$( dirname ${0} )/linecount.sh" "${TMP}" |
|
| 2 | 3 | for y in $( seq 2011 2026 ); do |
| 3 | 4 | for m in $( seq 01 12 ); do |
| 4 | 5 | d=$( printf '%04d-%02d-01\n' ${y} ${m} ) |
| ... | ... | @@ -7,7 +8,7 @@ for y in $( seq 2011 2026 ); do |
| 7 | 8 | echo -n "$d " |
| 8 | 9 | git reset --hard >/dev/null 2>&1 |
| 9 | 10 | git checkout -f ${commit} >/dev/null 2>&1 |
| 10 | - ../linecount.sh |
|
| 11 | + "${TMP}/linecount.sh" |
|
| 11 | 12 | git reset --hard >/dev/null 2>&1 |
| 12 | 13 | fi |
| 13 | 14 | done |
doc/LinesOfCode.ods
| ... | ... | Binary files /dev/null and b/doc/LinesOfCode.ods differ |