diff options
Diffstat (limited to 'publishrelease')
-rwxr-xr-x | publishrelease | 53 |
1 files changed, 6 insertions, 47 deletions
diff --git a/publishrelease b/publishrelease index f11218ec..98717bc9 100755 --- a/publishrelease +++ b/publishrelease | |||
@@ -5,7 +5,7 @@ | |||
5 | echo "example...: $0 3.1.1" | 5 | echo "example...: $0 3.1.1" |
6 | echo | 6 | echo |
7 | echo "Before running this, make sure the packages were built:" | 7 | echo "Before running this, make sure the packages were built:" |
8 | echo " makedist 3.1.1 /opt/lua54/ binary sign" | 8 | echo " makedist 3.1.1 /opt/lua54/ branch binary sign" |
9 | echo "And the tag was merged:" | 9 | echo "And the tag was merged:" |
10 | echo " mergerelease 3.1.1" | 10 | echo " mergerelease 3.1.1" |
11 | echo | 11 | echo |
@@ -43,6 +43,10 @@ do | |||
43 | } | 43 | } |
44 | done | 44 | done |
45 | 45 | ||
46 | source_digest="$( | ||
47 | sha256sum "luarocks-${v}.tar.gz" | cut -d' ' -f1 | ||
48 | )" | ||
49 | |||
46 | ####################################### | 50 | ####################################### |
47 | # utility | 51 | # utility |
48 | ####################################### | 52 | ####################################### |
@@ -121,6 +125,7 @@ gawk ' | |||
121 | print "\"date\": \"'$(date +'%Y-%m-%d')'\"," | 125 | print "\"date\": \"'$(date +'%Y-%m-%d')'\"," |
122 | print "\"files\": [\"luarocks-'$v'.tar.gz\", \"luarocks-'$v'.tar.gz.asc\", \"luarocks-'$v'-win32.zip\", \"luarocks-'$v'-win32.zip.asc\", \"luarocks-'$v'-windows-32.zip\", \"luarocks-'$v'-windows-32.zip.asc\", \"luarocks-'$v'-windows-64.zip\", \"luarocks-'$v'-windows-64.zip.asc\", \"luarocks-'$v'-linux-x86_64.zip\", \"luarocks-'$v'-linux-x86_64.zip.asc\"]," | 126 | print "\"files\": [\"luarocks-'$v'.tar.gz\", \"luarocks-'$v'.tar.gz.asc\", \"luarocks-'$v'-win32.zip\", \"luarocks-'$v'-win32.zip.asc\", \"luarocks-'$v'-windows-32.zip\", \"luarocks-'$v'-windows-32.zip.asc\", \"luarocks-'$v'-windows-64.zip\", \"luarocks-'$v'-windows-64.zip.asc\", \"luarocks-'$v'-linux-x86_64.zip\", \"luarocks-'$v'-linux-x86_64.zip.asc\"]," |
123 | print "\"about\": []" | 127 | print "\"about\": []" |
128 | print "\"source_digest\": \"'$source_digest'\"" | ||
124 | print "}}," | 129 | print "}}," |
125 | } | 130 | } |
126 | } | 131 | } |
@@ -165,49 +170,3 @@ confirm master | |||
165 | git commit static/md/home.md -m "update front page for LuaRocks $v" | 170 | git commit static/md/home.md -m "update front page for LuaRocks $v" |
166 | git push | 171 | git push |
167 | 172 | ||
168 | ####################################### | ||
169 | # luarocks.wiki | ||
170 | ####################################### | ||
171 | |||
172 | [ -e ../luarocks.wiki ] || { | ||
173 | cd .. | ||
174 | git clone ssh://git@github.com/luarocks/luarocks.wiki.git | ||
175 | } | ||
176 | |||
177 | if [ -e ../luarocks.wiki ] | ||
178 | then | ||
179 | cd ../luarocks.wiki | ||
180 | git pull | ||
181 | else | ||
182 | cd .. | ||
183 | git clone ssh://git@github.com/luarocks/luarocks.wiki.git | ||
184 | cd luarocks.wiki | ||
185 | fi | ||
186 | |||
187 | sed -i "s,Latest release: .*,Latest release: '''LuaRocks $v''' - '$(date +'%d/%b/%Y')'," Download.mediawiki | ||
188 | |||
189 | sed -i "s,/luarocks-[0-9.]*[0-9],/luarocks-$v,g" Download.mediawiki | ||
190 | |||
191 | gawk ' | ||
192 | BEGIN { | ||
193 | print "'\'\'\''Version '$v\'\'\'' - '$(date +'%d/%b/%Y')' - [http://luarocks.org/releases/luarocks-'$v'.tar.gz Source tarball for Unix] -" | ||
194 | print "[http://luarocks.org/releases/luarocks-'$v'-windows-32.zip Windows binary (32-bit)] -" | ||
195 | print "[http://luarocks.org/releases/luarocks-'$v'-windows-64.zip Windows binary (64-bit)] -" | ||
196 | print "[http://luarocks.org/releases/luarocks-'$v'-linux-x86_64.zip Linux binary (x86_64)] -" | ||
197 | print "[http://luarocks.github.io/luarocks/releases other files]" | ||
198 | print "" | ||
199 | } | ||
200 | // { | ||
201 | |||
202 | } | ||
203 | ' "Release-history.mediawiki" > "Release-history.mediawiki.1" | ||
204 | mv "Release-history.mediawiki.1" "Release-history.mediawiki" | ||
205 | |||
206 | git add "Download.mediawiki" | ||
207 | git add "Release-history.mediawiki" | ||
208 | git add "Installation-instructions-for-Unix.md" | ||
209 | |||
210 | confirm master | ||
211 | |||
212 | git commit -av -m "Release $v" | ||
213 | git push | ||