aboutsummaryrefslogtreecommitdiff
path: root/publishrelease
diff options
context:
space:
mode:
Diffstat (limited to 'publishrelease')
-rwxr-xr-xpublishrelease53
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 }
44done 44done
45 45
46source_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
165git commit static/md/home.md -m "update front page for LuaRocks $v" 170git commit static/md/home.md -m "update front page for LuaRocks $v"
166git push 171git 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
177if [ -e ../luarocks.wiki ]
178then
179 cd ../luarocks.wiki
180 git pull
181else
182 cd ..
183 git clone ssh://git@github.com/luarocks/luarocks.wiki.git
184 cd luarocks.wiki
185fi
186
187sed -i "s,Latest release: .*,Latest release: '''LuaRocks $v''' - '$(date +'%d/%b/%Y')'," Download.mediawiki
188
189sed -i "s,/luarocks-[0-9.]*[0-9],/luarocks-$v,g" Download.mediawiki
190
191gawk '
192BEGIN {
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 print
202}
203' "Release-history.mediawiki" > "Release-history.mediawiki.1"
204mv "Release-history.mediawiki.1" "Release-history.mediawiki"
205
206git add "Download.mediawiki"
207git add "Release-history.mediawiki"
208git add "Installation-instructions-for-Unix.md"
209
210confirm master
211
212git commit -av -m "Release $v"
213git push