5edb0065d6646899b55f6cd7c90ba7a3ad92cca0
configuration/linecount.sh
| ... | ... | @@ -1,2 +1,2 @@ |
| 1 | 1 | #!/bin/sh |
| 2 | -wc -l `find */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 | +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` |
configuration/linecount_per_month.sh
| ... | ... | @@ -0,0 +1,14 @@ |
| 1 | +#!/bin/bash |
|
| 2 | +for y in $( seq 2011 2026 ); do |
|
| 3 | + for m in $( seq 01 12 ); do |
|
| 4 | + d=$( printf '%04d-%02d-01\n' ${y} ${m} ) |
|
| 5 | + commit=$( git rev-list -n 1 --first-parent --before=${d} main 2>/dev/null ) |
|
| 6 | + if [ -n "${commit}" ]; then |
|
| 7 | + echo -n "$d " |
|
| 8 | + git reset --hard >/dev/null 2>&1 |
|
| 9 | + git checkout -f ${commit} >/dev/null 2>&1 |
|
| 10 | + ../linecount.sh |
|
| 11 | + git reset --hard >/dev/null 2>&1 |
|
| 12 | + fi |
|
| 13 | + done |
|
| 14 | +done |