make runnable from command line

This commit is contained in:
Michael Kirk 2018-11-26 17:52:50 -07:00
parent 4b5c4fae11
commit 5213fbe210
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,11 @@
#!/bin/sh
# PROJECT_DIR will be set when run from xcode, else we infer it
if [ "${PROJECT_DIR}" = "" ]; then
PROJECT_DIR=`git rev-parse --show-toplevel`
echo "inferred ${PROJECT_DIR}"
fi
# Capture hash & comment from last WebRTC git commit.
cd $PROJECT_DIR/ThirdParty/WebRTC/
_git_commit=`git log --pretty=oneline | head -1`