summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-03-04 11:31:18 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2019-03-04 11:31:18 +0100
commitc9c3a9c6971e65c66a1bae461d963a86d9abb13b (patch)
tree84a3beb1c7f29b4045c6f5c3a7c0df75acac1765
parentfb1eb2f1e8e6c1d278d120b9d8957c4a11de54d0 (diff)
release: update release script
We no longer produce tar.gz files. Also update to latest release versiona dn remove some never used parts.
-rwxr-xr-xrelease.sh48
1 files changed, 8 insertions, 40 deletions
diff --git a/release.sh b/release.sh
index 5450cea..86b945c 100755
--- a/release.sh
+++ b/release.sh
@@ -1,16 +1,16 @@
1#!/bin/bash 1#!/bin/bash
2 2
3### CONFIG - Please edit this section before using this script 3### CONFIG - Please edit this section before using this script
4libs="efl"
5VERSION_MAJ=1 4VERSION_MAJ=1
6VERSION_MIN=16 5VERSION_MIN=22
7OLD_VERSION_MIN=15 6OLD_VERSION_MIN=21
8VERSION_MIC=3 7VERSION_MIC=0
9OLD_VERSION_MIC=2 8OLD_VERSION_MIC=0
10PRE_RELEASE_STRING="" # "", "-alpha1", "-beta1", ... 9PRE_RELEASE_STRING="-alpha1" # "", "-alpha1", "-beta1", ...
11OLD_PRE_RELEASE_STRING="" 10OLD_PRE_RELEASE_STRING=""
12 11
13#OLD_VERSION_MIC=$(let $VERSION_MIC-1) 12#OLD_VERSION_MIC=$(let $VERSION_MIC-1)
13libs="efl"
14VERSION_SIMPLE="$VERSION_MAJ.$VERSION_MIN.$VERSION_MIC" 14VERSION_SIMPLE="$VERSION_MAJ.$VERSION_MIN.$VERSION_MIC"
15VERSION="$VERSION_SIMPLE$PRE_RELEASE_STRING" 15VERSION="$VERSION_SIMPLE$PRE_RELEASE_STRING"
16OLD_VERSION="$VERSION_MAJ.$OLD_VERSION_MIN.$OLD_VERSION_MIC$OLD_PRE_RELEASE_STRING" 16OLD_VERSION="$VERSION_MAJ.$OLD_VERSION_MIN.$OLD_VERSION_MIC$OLD_PRE_RELEASE_STRING"
@@ -40,13 +40,9 @@ do_compile()
40{ 40{
41 ./autogen.sh || exit 1 41 ./autogen.sh || exit 1
42 make "$MAKEFLAGS" || exit 1 42 make "$MAKEFLAGS" || exit 1
43 make -j 10 distcheck || exit 1 43 make -j 3 distcheck || exit 1
44 44
45 # Documentation 45 make doc
46 if [ $lib = "efl" ]
47 then
48 make doc
49 fi
50} 46}
51 47
52do_package_and_upload() 48do_package_and_upload()
@@ -65,15 +61,11 @@ do_package_and_upload()
65 get_news 61 get_news
66 do_compile 62 do_compile
67 63
68 #git co po/
69 sha256sum $lib-$VERSION.tar.gz > $lib-$VERSION.tar.gz.sha256
70 sha256sum $lib-$VERSION.tar.xz > $lib-$VERSION.tar.xz.sha256 64 sha256sum $lib-$VERSION.tar.xz > $lib-$VERSION.tar.xz.sha256
71 65
72 if [ $MAJOR = 0 ] 66 if [ $MAJOR = 0 ]
73 then 67 then
74 mv $lib-$VERSION.tar.gz $lib-$VERSION-pre.tar.gz
75 mv $lib-$VERSION.tar.xz $lib-$VERSION-pre.tar.xz 68 mv $lib-$VERSION.tar.xz $lib-$VERSION-pre.tar.xz
76 mv $lib-$VERSION.tar.gz.sha256 $lib-$VERSION-pre.tar.gz.sha256
77 mv $lib-$VERSION.tar.xz.sha256 $lib-$VERSION-pre.tar.xz.sha256 69 mv $lib-$VERSION.tar.xz.sha256 $lib-$VERSION-pre.tar.xz.sha256
78 fi 70 fi
79 71
@@ -84,7 +76,6 @@ do_package_and_upload()
84 76
85 scp $lib-$VERSION.tar.* download.enlightenment.org:/srv/web/download.enlightenment.org/public_html/pre-releases/ 77 scp $lib-$VERSION.tar.* download.enlightenment.org:/srv/web/download.enlightenment.org/public_html/pre-releases/
86 78
87 # git push
88 cd .. 79 cd ..
89 echo 80 echo
90 echo "Packaged and uploaded $lib. Please push changes to repo now." 81 echo "Packaged and uploaded $lib. Please push changes to repo now."
@@ -102,7 +93,6 @@ do_finalize_release()
102 93
103 cd "$lib" 94 cd "$lib"
104 git tag -a v$VERSION -m "v$VERSION" || exit 1 95 git tag -a v$VERSION -m "v$VERSION" || exit 1
105 #git push --tags || exit 1
106 96
107# if [ $MAJOR = 1 ] 97# if [ $MAJOR = 1 ]
108# then 98# then
@@ -113,9 +103,7 @@ do_finalize_release()
113 echo "Move tarballs to final destination" 103 echo "Move tarballs to final destination"
114 if [ $MAJOR = 0 ] 104 if [ $MAJOR = 0 ]
115 then 105 then
116 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION-pre.tar.gz /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION.tar.gz
117 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION-pre.tar.xz /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION.tar.xz 106 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION-pre.tar.xz /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION.tar.xz
118 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION-pre.tar.gz.sha256 /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION.tar.gz.sha256
119 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION-pre.tar.xz.sha256 /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION.tar.xz.sha256 107 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION-pre.tar.xz.sha256 /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/$lib-$VERSION.tar.xz.sha256
120 else 108 else
121 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION.tar.* /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/ 109 ssh download.enlightenment.org mv /srv/web/download.enlightenment.org/public_html/pre-releases/$lib-$VERSION.tar.* /srv/web/download.enlightenment.org/public_html/rel/libs/$lib/
@@ -135,7 +123,6 @@ do_finalize_release()
135 fi 123 fi
136 124
137# Sed version to .99 and dev mode 125# Sed version to .99 and dev mode
138# git push origin
139 fi 126 fi
140 127
141 cd .. 128 cd ..
@@ -161,8 +148,6 @@ Options:
161 --finalise Finalise a release. Move to the right location, git tags, etc 148 --finalise Finalise a release. Move to the right location, git tags, etc
162 --help Show this message 149 --help Show this message
163 150
164Libraries released by default are:
165$libs
166 151
167EOF 152EOF
168exit 0 153exit 0
@@ -218,20 +203,3 @@ do
218 fi 203 fi
219 204
220done 205done
221
222if [ $FINALISE = 1 ]
223then
224 cd www-content
225 $EDITOR pages/download-latest.txt # sed version number in website source
226 $EDITOR pages/start-release.txt # sed version number in website source
227 git diff
228 git commit -a -m "release: Update links for version $VERSION" || exit 1
229 #git push
230
231 # Generate announcement template with urls, sha256 checksums in a table
232 # sed a template file?
233
234 # Send announcement template vial mail to release@lists.enlightenment.org
235
236 # Manually put template into phame on phab
237fi