From ba10e5651f64654670731826abad906ef2c030df Mon Sep 17 00:00:00 2001 From: emsquared Date: Wed, 27 Jun 2012 13:16:05 -0400 Subject: [PATCH] We don't really need it, but --- Resources/Info.plist | 4 ++-- Resources/Shell/linecount.sh | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100755 Resources/Shell/linecount.sh diff --git a/Resources/Info.plist b/Resources/Info.plist index 9fd1bd5c09..e4fad5bef2 100755 --- a/Resources/Info.plist +++ b/Resources/Info.plist @@ -45,8 +45,8 @@ NSPrincipalClass NSApplication TXBundleBuildNumber - 11499 + 11500 TXBundleBuildReference - 2.1.1-194-gf4ee2dc-debug,llvm4.0 + 2.1.1-195-g583382b-appstore,llvm4.0 diff --git a/Resources/Shell/linecount.sh b/Resources/Shell/linecount.sh new file mode 100755 index 0000000000..4e71d5e0f7 --- /dev/null +++ b/Resources/Shell/linecount.sh @@ -0,0 +1,42 @@ +#!/bin/sh +# Created by Codeux Software +# 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