-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
21 lines (17 loc) · 971 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
####################################################################
#
# Rules used to build and release the SDK.
#
####################################################################
# Updates the version in the 3rd line of the header files with the version specified in sdk-version.txt.
# Example: Leanplum Segment iOS Integration Version 1.1.4.
updateVersion:
sed -i '' -e "3 s/Version .*/Version `cat sdk-version.txt`/g" "./Pod/Classes/SEGLeanplumIntegration.h"
sed -i '' -e "3 s/Version .*/Version `cat sdk-version.txt`/g" "./Pod/Classes/SEGLeanplumIntegrationFactory.h"
# Adds the headers files with the updated version; Commit; Tag; Push;
tagCommit:
git add Pod/Classes/SEGLeanplumIntegration.h; git add Pod/Classes/SEGLeanplumIntegrationFactory.h; git commit -am 'update version'; git tag `cat sdk-version.txt`; git push; git push origin `cat sdk-version.txt`
# Pushes to Cocoapods using trunk
pushPod:
./push.sh;
deploy: updateVersion tagCommit pushPod