Skip to content

Commit

Permalink
We don't really need it, but
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Jun 27, 2012
1 parent 583382b commit ba10e56
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>TXBundleBuildNumber</key>
<string>11499</string>
<string>11500</string>
<key>TXBundleBuildReference</key>
<string>2.1.1-194-gf4ee2dc-debug,llvm4.0</string>
<string>2.1.1-195-g583382b-appstore,llvm4.0</string>
</dict>
</plist>
42 changes: 42 additions & 0 deletions Resources/Shell/linecount.sh
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

0 comments on commit ba10e56

Please sign in to comment.