From a9ac89419c52347ed5cb0070d83814c8e30b0e15 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 9 Oct 2022 03:17:03 -0500 Subject: [PATCH] Add line count script for C++ Projects Co-authored-by: sigonasr2 --- C++/scripts/filelist | 2 ++ C++/scripts/lines.sh | 14 ++++++++++++++ C++/scripts/md5 | 2 ++ C++/scripts/temp | 0 4 files changed, 18 insertions(+) create mode 100755 C++/scripts/lines.sh create mode 100644 C++/scripts/temp diff --git a/C++/scripts/filelist b/C++/scripts/filelist index 5f624fd..faf6fb4 100644 --- a/C++/scripts/filelist +++ b/C++/scripts/filelist @@ -1,3 +1,5 @@ build.sh commit.sh +lines.sh +temp web.sh diff --git a/C++/scripts/lines.sh b/C++/scripts/lines.sh new file mode 100755 index 0000000..90e6d10 --- /dev/null +++ b/C++/scripts/lines.sh @@ -0,0 +1,14 @@ +#Returns the line counts of your project. +#C++ +shopt -s extglob +ls -1 @(*.h|*.cpp) > temp +while read a; do + if [ "$a" != "pixelGameEngine.h" ] && [ "$a" != "soundwaveEngine.h" ] && [ "$a" != "splash.h" ]; + then + echo -e "$a\n" >> temp2 + fi +done < temp +wc -l $(cat temp2) + +rm temp +rm temp2 \ No newline at end of file diff --git a/C++/scripts/md5 b/C++/scripts/md5 index 7cf8083..b71151f 100644 --- a/C++/scripts/md5 +++ b/C++/scripts/md5 @@ -1,3 +1,5 @@ build.sh:530634457ea9041267c05d4ced95eee1 - commit.sh:d03a46e721060c22ccb146e19d27e70a - +lines.sh:3b907786f7fc9204025993016c9080de - +temp:d41d8cd98f00b204e9800998ecf8427e - web.sh:3dcc2fe7e036359eedd257a864e9a1e1 - diff --git a/C++/scripts/temp b/C++/scripts/temp new file mode 100644 index 0000000..e69de29