forked from unify/qooxdoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·32 lines (23 loc) · 909 Bytes
/
release.sh
File metadata and controls
executable file
·32 lines (23 loc) · 909 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
#!/bin/bash
root=`dirname $0`
echo ">>> Path: $root"
cd $root || exit 1
version=`cat qooxdoo/version.txt`
echo ">>> Version: $version"
echo ">>> If there is an error tagging the project you might to increment the version counter"
echo ">>> Tagging qooxdoo $version"
git tag -a -m "Tagged qooxdoo $version" $version || exit 1
echo ">>> Pushing tag $version..."
git push origin $version || exit 1
echo ">>> Sleeping for 30 seconds"
sleep 30
echo ">>> Preparing release..."
mkdir -p ../qts-release/qooxdoo-$version || exit 1
cd ../qts-release/qooxdoo-$version || exit 1
echo ">>> Downloading archive qooxdoo-$version.zip..."
wget --no-check-certificate -O qooxdoo-$version.zip https://github.com/unify/qooxdoo/zipball/$version || exit 1
echo ">>> Tagging qooxdoo $version in SVN..."
cd .. || exit 1
svn add qooxdoo-$version
svn ci -m "Tagged qooxdoo $version" qooxdoo-$version || exit 1
echo ">>> Done"