Last active
          August 11, 2016 03:02 
        
      - 
      
- 
        Save EkkoG/93aef53f671e3fced1b5cc6b35f9349f to your computer and use it in GitHub Desktop. 
    bump_version.sh
  
        
  
    
      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/sh | |
| # | |
| # bump_version.sh | |
| # | |
| # Distributed under terms of the MIT license. | |
| # | |
| if [ $CONFIGURATION == Release ]; then | |
| buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
| buildNumber=$(($buildNumber + | |
| 1)) | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" | |
| else | |
| echo $CONFIGURATION " build - Not bumping build number." | |
| fi | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment