Skip to content

Instantly share code, notes, and snippets.

@CraigCottingham
CraigCottingham / gist:2152417
Created Mar 21, 2012
Script to turn Git version into plist preprocessor vars for Xcode
View gist:2152417
GIT=`which git`
BASE="HelloWorld/HelloWorld-Info"
PLIST="$BASE.plist"
PLIST_H="$BASE-plist.h"
touch $PLIST
VERSION=`$GIT describe --dirty | sed 's/[a-zA-Z]*//'`
SHORT_VERSION=`echo $VERSION | sed 's/\-[0-9]*\-[a-zA-Z0-9]*//'`
@CraigCottingham
CraigCottingham / .gitattributes
Created Mar 21, 2012
.gitignore and .gitattributes for Xcode 4.3
View .gitattributes
# treats your Xcode project file as a binary; prevents Git from trying to fix newlines, show in diffs, and excludes from merges
*.pbxproj -crlf -diff -merge
View gist:1346875
craigc@samantha:~/Projects/glitch$ gem list
*** LOCAL GEMS ***
activesupport (3.1.1)
bundler (1.0.21)
i18n (0.6.0)
multi_json (1.0.3)
nestful (0.0.7)
rake (0.9.2)