~vdupras/duskos

ref: 5d294d8c81cb95765fc96ad7c9ad681db18d3d76 duskos/codesize.sh -rwxr-xr-x 601 bytes
5d294d8cVirgil Dupras posix/vm: fix compilation under cygwin 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
echo "Lines of code in Dusk OS"
echo "All Forth code excluding tests:"
find fs -name "*.fs" | grep -v tests | xargs cat | wc -l
echo "...excluding empty lines and comments:"
find fs -name "*.fs" | grep -v tests | xargs cat | grep -v "^\\\\" | grep -v '^$' | wc -l
echo "All C code excluding tests:"
find fs -name "*.c" | grep -v tests | xargs cat | wc -l
echo "C compiler:"
find fs/cc -type f | xargs cat | wc -l
echo "...excluding empty lines and comments:"
find fs/cc -type f | xargs cat | grep -v "^\\\\" | grep -v '^$' | wc -l
echo "Test code:"
find fs/tests -type f | xargs cat | wc -l