Skip to content

Instantly share code, notes, and snippets.

View brettohland's full-sized avatar

brett ohland brettohland

View GitHub Profile

This page is now depreacted!

Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.

The Wisdom of Quinn

Informative DevForum posts from everyone's favorite DTS member.

(Arranged newest to oldest)

@dcloud
dcloud / xcode-git-version.sh
Created February 6, 2013 22:08
My simple version of using git commit count to set build numbers in Xcode.
#!/bin/sh
#
git=`sh /etc/profile; which git`
count=`$git rev-list --all | wc -l`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $count" "${PROJECT_DIR}/${INFOPLIST_FILE}"