Advertisement
Guest User

Untitled

a guest
May 29th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. GIT_RELEASE_VERSION=$(git --git-dir="${PROJECT_DIR}/../.git" --work-tree="${PROJECT_DIR}/.." describe --abbrev=0 --tags | sed -e 's/^v//' -e 's/g//')
  2. COMMITS=$(git --git-dir="${PROJECT_DIR}/../.git" --work-tree="${PROJECT_DIR}/.." rev-list HEAD --count)
  3. COMMITS=$(($COMMITS))
  4.  
  5. echo -e "#define GIT_VERSION_STRING ${GIT_RELEASE_VERSION}\n#define GIT_BUILD_NUMBER ${COMMITS}" > "$PROJECT_DIR/Version.h"
  6. touch Info.plist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement