1 2 3 4 5 6 7 8 9
#!/bin/bash # Update version in Info.plist with Git revision GIT_REVISION="Unknown" BUNDLE_NAME="XBMC" GIT_REVISION="Git-"$(cat git_revision.h | sed -n 's/\(.*\)\"\(.*\)\"\(.*\)/\2/p') perl -p -i -e "s/r####/$GIT_REVISION/" "$TARGET_BUILD_DIR/$BUNDLE_NAME.app/Contents/Info.plist"