Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 470 Bytes
#!/bin/sh
loc=0
dirs="HTML Node"
mv HTML/jquery.js .
mv HTML/socket.io .
mv Node/socket.io-node .
mv HTML/external .
for dir in $dirs; do
files=`find $dir -type f | egrep -v "svn" | egrep -v "(DS_Store|pdf|svn|sql|png|txt|swfupload)"`
lines=`wc -l $files | tail -1 | sed "s/total//g"`
loc=$(($loc + $lines))
done
mv socket.io HTML
mv socket.io-node Node
mv external HTML
mv jquery.js HTML
echo "Lines of code: $loc (not including libraries / externals)"
Something went wrong with that request. Please try again.