forked from Codeux-Software/Textual
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
emsquared
committed
Jun 27, 2012
1 parent
583382b
commit ba10e56
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
# Created by Codeux Software <support AT codeux DOT com> <https://github.com/codeux/Textual> | ||
# You can redistribute it and/or modify it under the new BSD license. | ||
|
||
# | ||
# Find command search pattern explained: | ||
# | ||
# -type d -name "build" -prune — Exclude "build" Directory | ||
# -name '*.h' — Objective-C Header | ||
# -o -name '*.m' — Objective-C Implementation | ||
# -o -name '*.strings' — Localization Strings | ||
# -o -name '*.plist' — Apple Property List | ||
# -o -name '*.css' — Cascading Style Sheet | ||
# -o -name '*.js' — JavaScript Source | ||
# -o -name '*.mm' – Objective-C++ Implementation | ||
# -o -name '*.cpp' — C++ Source | ||
# -o -name '*.hpp' — C++ Header | ||
# -o -name '*.l' – Lex Source | ||
# -o -name '*.pch' — Pre-compiled Header File | ||
# -o -name '*.sh' — Include Ourselves (joke!) | ||
# | ||
# AppleScript files (.scpt) are not included in our search | ||
# because they are compiled so counting the number of lines | ||
# they contain is not worth the time because it is compiled. | ||
# code. So, pretty much rubbish. | ||
# | ||
|
||
find ../../ \ | ||
-type d -name "build" -prune -o -type f \( \ | ||
-name '*.h' \ | ||
-o -name '*.m' \ | ||
-o -name '*.strings' \ | ||
-o -name '*.plist' \ | ||
-o -name '*.css' \ | ||
-o -name '*.js' \ | ||
-o -name '*.mm' \ | ||
-o -name '*.cpp' \ | ||
-o -name '*.hpp' \ | ||
-o -name '*.l' \ | ||
-o -name '*.pch' \ | ||
-o -name '*.sh' \ | ||
\) -print0 | xargs -0 wc -l |