-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.sh
executable file
·46 lines (46 loc) · 1.56 KB
/
utils.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
COMMAND="$1"
case "$COMMAND" in
'sync-version-base')
version=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MovieousBase.framework/Info.plist`
agvtool new-marketing-version $version
git add .
git commit -m "release v$version"
git tag "v$version"
git push
git push --tags
exit 0
;;
'sync-version-capture')
version=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MovieousCaptureBase.framework/Info.plist`
agvtool new-marketing-version $version
git add .
git commit -m "release v$version"
git tag "v$version"
git push
git push --tags
exit 0
;;
'sync-version-play')
version=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MovieousPlayBase.framework/Info.plist`
agvtool new-marketing-version $version
git add .
git commit -m "release v$version"
git tag "v$version"
git push
git push --tags
exit 0
;;
'get-version-base')
echo `/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MovieousBase.framework/Info.plist`
;;
'get-version-capture')
echo `/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MovieousCaptureBase.framework/Info.plist`
;;
'get-version-play')
echo `/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MovieousPlayBase.framework/Info.plist`
;;
*)
echo "Unknown command $COMMAND"
exit 1
;;
esac