mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-20 09:11:30 +02:00
Added linecount.sh script.
This commit is contained in:
17
scripts/linecount.sh
Executable file
17
scripts/linecount.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
lib_comment_lines=$(grep '^// ' *.scad | wc -l)
|
||||||
|
lib_code_lines=$(grep '^ *[^ /]' *.scad | wc -l)
|
||||||
|
script_code_lines=$(grep '^ *[^ /]' scripts/*.sh scripts/*.py | wc -l)
|
||||||
|
example_code_lines=$(grep '^ *[^ /]' examples/*.scad | wc -l)
|
||||||
|
test_code_lines=$(grep '^ *[^ /]' tests/*.scad | wc -l)
|
||||||
|
tutorial_lines=$(grep '^ *[^ /]' tutorials/*.md | wc -l)
|
||||||
|
|
||||||
|
y=$(printf "%06d" 13)
|
||||||
|
|
||||||
|
printf "Documentation Lines : %6d\n" $(($lib_comment_lines+$tutorial_lines))
|
||||||
|
printf "Example Code Lines : %6d\n" $example_code_lines
|
||||||
|
printf "Library Code Lines : %6d\n" $lib_code_lines
|
||||||
|
printf "Support Script Lines: %6d\n" $script_code_lines
|
||||||
|
printf "Test Code Lines : %6d\n" $test_code_lines
|
||||||
|
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,455];
|
BOSL_VERSION = [2,0,456];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user