~vdupras/duskos

duskos/codesize.sh -rwxr-xr-x 601 bytes
508a18b8Virgil Dupras cvm: add the ability to mount any file on the host has a drive 14 hours 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