This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function get_env_val { | |
| path=$(xcode-select -print-path) | |
| var=$($path/usr/bin/xcodebuild -showBuildSettings | sed -n -e 's/'"$1"' = \(.*\)/\1/p') | |
| echo $var | |
| } | |
| SRCROOT=$(get_env_val "SRCROOT") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################ | |
| # 'pre-push' script that prompt the push to user and | |
| # then call another script which exist at %rel_path/%script_name | |
| # (mostly lays at $SRCROOT) | |
| #set your script | |
| script_name="another.sh" | |
| #relative path |
NewerOlder