forked from ryanbagwell/wordpress-sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_release.sh
More file actions
executable file
·45 lines (18 loc) · 841 Bytes
/
make_release.sh
File metadata and controls
executable file
·45 lines (18 loc) · 841 Bytes
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
#!/bin/bash
GIT_LATEST="$(git describe --abbrev=0 --tags)"
read -p "Specify a version (ex: 0.3) - latest git tag is ${GIT_LATEST}:" version
rm -rf /tmp/getsentry-client-svn
svn co http://plugins.svn.wordpress.org/getsentry-client/ /tmp/getsentry-client-svn
echo "Copying files to trunk"
git ls-tree -r --name-only HEAD | xargs -t -I file rsync -R --exclude 'make_release.sh' file /tmp/getsentry-client-svn/trunk/
cd /tmp/getsentry-client-svn/
svn add trunk/*
svn status
svn commit -m "Version ${version}"
echo "Creating release tag"
mkdir /tmp/getsentry-client-svn/tags/${version}
svn add /tmp/getsentry-client-svn/tags/${version}
svn commit -m "Adding tag for Version ${version}"
echo "Copying versioned files to ${version} tag"
svn cp --parents trunk/* tags/${version}
svn commit -m "Tagging Version ${version}"