diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 17:05:57 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 17:06:15 -0300 |
commit | 3e12f3df50e4f6f0035f13b255d380fbf207a7c1 (patch) | |
tree | 46a1d1c9d95f42ebdde6d3b996016bc995b5e1cf /publishrelease | |
parent | 7a6961500e815a51077c85064d7251eb3f706bfa (diff) | |
download | luarocks-3e12f3df50e4f6f0035f13b255d380fbf207a7c1.tar.gz luarocks-3e12f3df50e4f6f0035f13b255d380fbf207a7c1.tar.bz2 luarocks-3e12f3df50e4f6f0035f13b255d380fbf207a7c1.zip |
publishrelease: fix pull, update Unix instructions
Diffstat (limited to 'publishrelease')
-rwxr-xr-x | publishrelease | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/publishrelease b/publishrelease index b464a852..fd67d8c8 100755 --- a/publishrelease +++ b/publishrelease | |||
@@ -141,13 +141,13 @@ git checkout master | |||
141 | if [ -e ../luarocks-site ] | 141 | if [ -e ../luarocks-site ] |
142 | then | 142 | then |
143 | cd ../luarocks-site | 143 | cd ../luarocks-site |
144 | git pull | ||
144 | else | 145 | else |
145 | cd .. | 146 | cd .. |
146 | git clone https://github.com/luarocks/luarocks-site | 147 | git clone https://github.com/luarocks/luarocks-site |
147 | cd luarocks-site | 148 | cd luarocks-site |
148 | fi | 149 | fi |
149 | 150 | ||
150 | git pull | ||
151 | sed -i 's,luarocks-[0-9]*\.[0-9]*\.[0-9]*,luarocks-'$v',' static/md/home.md | 151 | sed -i 's,luarocks-[0-9]*\.[0-9]*\.[0-9]*,luarocks-'$v',' static/md/home.md |
152 | git add static/md/home.md | 152 | git add static/md/home.md |
153 | 153 | ||
@@ -168,6 +168,7 @@ git push | |||
168 | if [ -e ../luarocks.wiki ] | 168 | if [ -e ../luarocks.wiki ] |
169 | then | 169 | then |
170 | cd ../luarocks.wiki | 170 | cd ../luarocks.wiki |
171 | git pull | ||
171 | else | 172 | else |
172 | cd .. | 173 | cd .. |
173 | git clone https://github.com/luarocks/luarocks.wiki.git | 174 | git clone https://github.com/luarocks/luarocks.wiki.git |
@@ -176,6 +177,8 @@ fi | |||
176 | 177 | ||
177 | sed -i "s,The current stable release is [^:]*:,The current stable release is '''$v''':," Download.mediawiki | 178 | sed -i "s,The current stable release is [^:]*:,The current stable release is '''$v''':," Download.mediawiki |
178 | 179 | ||
180 | sed -i "s,luarocks-[0-9.]*[0-9],luarocks-$v," Installation-instructions-for-Unix.md | ||
181 | |||
179 | gawk ' | 182 | gawk ' |
180 | BEGIN { | 183 | BEGIN { |
181 | print "'\'\'\''Version '$v\'\'\'' - '$(date +'%d/%b/%Y')' - [http://luarocks.org/releases/luarocks-'$v'.tar.gz All Unix] -" | 184 | print "'\'\'\''Version '$v\'\'\'' - '$(date +'%d/%b/%Y')' - [http://luarocks.org/releases/luarocks-'$v'.tar.gz All Unix] -" |
@@ -190,6 +193,7 @@ mv "Release-history.mediawiki.1" "Release-history.mediawiki" | |||
190 | 193 | ||
191 | git add "Download.mediawiki" | 194 | git add "Download.mediawiki" |
192 | git add "Release-history.mediawiki" | 195 | git add "Release-history.mediawiki" |
196 | git add "Installation-instructions-for-Unix.md" | ||
193 | 197 | ||
194 | confirm master | 198 | confirm master |
195 | 199 | ||