diff options
Diffstat (limited to '')
-rwxr-xr-x | publishrelease | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/publishrelease b/publishrelease index 808202e4..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 |
@@ -124,7 +124,7 @@ gawk ' | |||
124 | print "\"'$v'\": {" | 124 | print "\"'$v'\": {" |
125 | print "\"date\": \"'$(date +'%Y-%m-%d')'\"," | 125 | print "\"date\": \"'$(date +'%Y-%m-%d')'\"," |
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\"]," | 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\"]," |
127 | print "\"about\": []", | 127 | print "\"about\": []" |
128 | print "\"source_digest\": \"'$source_digest'\"" | 128 | print "\"source_digest\": \"'$source_digest'\"" |
129 | print "}}," | 129 | print "}}," |
130 | } | 130 | } |
@@ -170,49 +170,3 @@ confirm master | |||
170 | 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" |
171 | git push | 171 | git push |
172 | 172 | ||
173 | ####################################### | ||
174 | # luarocks.wiki | ||
175 | ####################################### | ||
176 | |||
177 | [ -e ../luarocks.wiki ] || { | ||
178 | cd .. | ||
179 | git clone ssh://git@github.com/luarocks/luarocks.wiki.git | ||
180 | } | ||
181 | |||
182 | if [ -e ../luarocks.wiki ] | ||
183 | then | ||
184 | cd ../luarocks.wiki | ||
185 | git pull | ||
186 | else | ||
187 | cd .. | ||
188 | git clone ssh://git@github.com/luarocks/luarocks.wiki.git | ||
189 | cd luarocks.wiki | ||
190 | fi | ||
191 | |||
192 | sed -i "s,Latest release: .*,Latest release: '''LuaRocks $v''' - '$(date +'%d/%b/%Y')'," Download.mediawiki | ||
193 | |||
194 | sed -i "s,/luarocks-[0-9.]*[0-9],/luarocks-$v,g" Download.mediawiki | ||
195 | |||
196 | gawk ' | ||
197 | BEGIN { | ||
198 | print "'\'\'\''Version '$v\'\'\'' - '$(date +'%d/%b/%Y')' - [http://luarocks.org/releases/luarocks-'$v'.tar.gz Source tarball for Unix] -" | ||
199 | print "[http://luarocks.org/releases/luarocks-'$v'-windows-32.zip Windows binary (32-bit)] -" | ||
200 | print "[http://luarocks.org/releases/luarocks-'$v'-windows-64.zip Windows binary (64-bit)] -" | ||
201 | print "[http://luarocks.org/releases/luarocks-'$v'-linux-x86_64.zip Linux binary (x86_64)] -" | ||
202 | print "[http://luarocks.github.io/luarocks/releases other files]" | ||
203 | print "" | ||
204 | } | ||
205 | // { | ||
206 | |||
207 | } | ||
208 | ' "Release-history.mediawiki" > "Release-history.mediawiki.1" | ||
209 | mv "Release-history.mediawiki.1" "Release-history.mediawiki" | ||
210 | |||
211 | git add "Download.mediawiki" | ||
212 | git add "Release-history.mediawiki" | ||
213 | git add "Installation-instructions-for-Unix.md" | ||
214 | |||
215 | confirm master | ||
216 | |||
217 | git commit -av -m "Release $v" | ||
218 | git push | ||