Skip to content

Instantly share code, notes, and snippets.

@adetamore
adetamore / automate.sh
Last active August 29, 2015 13:57
Auto Incrementing Build Version - iOS
#!/bin/bash
buildPlist=${INFOPLIST_FILE}
newVersion=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$buildPlist" | /usr/bin/perl -pe 's/(\d+)/($1+1)/eg'`
/usr/libexec/PListBuddy -c "Set :CFBundleVersion $newVersion" "$buildPlist"
Take 1 drink of your beer if:
Someone mentions GIT, Hadoop, Testing, Agile, WIFI, Swag or Drone
Someone asks what sessions you are attending (take an additional drink for each session you are both attending)
Someone is wearing this years Codemash hoodie
Take 2 drinks of your beer if:
Someone mentions Bacon, Cold Weather, Hot Tub Bar, Arduino
You overhear some arguing about Mac vs PC, Vim vs Emacs, etc
Finish your beer if: