aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/Support/updateversioninfo-osx.command
blob: 2cd18cefc059e42a63a5dcf6aa104dc707b2b3cd (plain)
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"