projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
forps
[feisty_meow.git]
/
scripts
/
buildor
/
buildor_count_code.sh
diff --git
a/scripts/buildor/buildor_count_code.sh
b/scripts/buildor/buildor_count_code.sh
index c80b6f8183c799fed7222858f2e545ea131cd879..3bd9fcedb32388983df48385586059bb858606e2 100644
(file)
--- a/
scripts/buildor/buildor_count_code.sh
+++ b/
scripts/buildor/buildor_count_code.sh
@@
-17,6
+17,8
@@
while true; do
dir="$1"; shift
if [ -z "$dir" ]; then
dir="$1"; shift
if [ -z "$dir" ]; then
+ rm $NAME_LIST_TEMP_FILE
+
break;
fi
#echo dir is $dir
break;
fi
#echo dir is $dir
@@
-31,9
+33,9
@@
while true; do
#cat $NAME_LIST_TEMP_FILE
#echo ====================================================
#cat $NAME_LIST_TEMP_FILE
#echo ====================================================
- while read
line
; do
-#echo
line is $line
- count=$(grep -h -v -c "^[ ]*$" $
line
)
+ while read
input_text
; do
+#echo
input_text is $input_text
+ count=$(grep -h -v -c "^[ ]*$" $
input_text
)
TOTALS=$(($TOTALS + $count))
#echo total is $TOTALS now
done < "$NAME_LIST_TEMP_FILE"
TOTALS=$(($TOTALS + $count))
#echo total is $TOTALS now
done < "$NAME_LIST_TEMP_FILE"