Skip to content

Instantly share code, notes, and snippets.

Avatar

E ericholsinger

View GitHub Profile
@ericholsinger
ericholsinger / convertmp4
Created Mar 19, 2015
convertmp4: A bash shell script to make the calls to ffmpeg a little simpler for converting OBS .flv output to .mp4
View convertmp4
#!/bin/bash
#
# this will call ffmeg to convert a .flv to a .mp4
#
# NOTE: ffmeg is expected to be install and in your path
#
# usage: convertmp4 infile.flv
#
# output will be a .mp4 file in the same directory
#
@ericholsinger
ericholsinger / xcode-build-number-increment-phase
Created Dec 12, 2013
This is a script for incrementing build numbers in xcode, automatically during the build phase. It handles the build in the format xx.yy.zz where zz is incremented for each build, and yy is incremented when you archive your project. The xx is handled manually in this case. For more information, you can read my blog post at http://bit.ly/1h3ztJK
View xcode-build-number-increment-phase
#!/bin/bash
conf=${CONFIGURATION}
arch=${ARCHS:0:4}
# Only increase the build number on Device and AdHoc/AppStore build
if [ $conf == "Release" ]
then
echo "Bumping bundle version number..."
buildPlist=${INFOPLIST_FILE}
bundleVersion=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$buildPlist" | /usr/bin/perl -pe 's/(\d+\.)(\d+)(\.\d+)/$1.($2+1).$3/eg'`