-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.sh
executable file
·49 lines (43 loc) · 1.12 KB
/
release.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
47
48
49
###############################################################################
#
# Release script for ecl1
#
# Prerequisites:
# - Prebuilt Update Site
# - build.ant-private.properties
# - README.md up to date
# - No uncommitted changes
#
# Parameters: 1. Version identificator (required)
#
###############################################################################
VERSION=$1
###############################################################################
# Update site
# Sign update site artifacts
cd h1updatesite
ant sign
git commit -am "Signed update site artifacts for version ${VERSION}"
cd ..
# Website
# Update version number
cd net.sf.ecl1.website
cat index.html.template | sed "s|ECL1VERSION|$VERSION|" > index.html.tmp
mv index.html.tmp index.html
cd ..
# Tag version
git tag -a v$VERSION -m "Release tag for version ${VERSION}"
# Website
# Upload website
cd net.sf.ecl1.website
./update.sh
cd ..
# push tags to sf.net
git push --tags
git push
# upload update site and update site archive
cd h1updatesite
ant upload
# Remove update site archive
rm updatesite*.zip
cd ..