summaryrefslogtreecommitdiff
path: root/src/sloc.sh
blob: 6b5cb02f44e3350b2b78d5a3996120689d4087cc (plain)
1
2
3
4
5
6
7
#!/bin/bash

mkdir /tmp/sloc/{,src,JUTests}
find */src -name *.java \! -name *Bean.java -print0 | xargs -0r cp -vt /tmp/sloc/src
find */JUTests -name *.java \! -name *Bean.java -print0 | xargs -0r cp -vt /tmp/sloc/JUTests
sloccount /tmp/sloc/*
rm -r /tmp/sloc