From 5213fbe210254b1fc2e809007a04de710e9e1b2e Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 26 Nov 2018 17:52:50 -0700 Subject: [PATCH] make runnable from command line --- Scripts/update_plist_info.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Scripts/update_plist_info.sh b/Scripts/update_plist_info.sh index 20ca9b4c8..e64dda58a 100755 --- a/Scripts/update_plist_info.sh +++ b/Scripts/update_plist_info.sh @@ -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`