Skip to content

Commit

Permalink
Fix luarocks publish
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Mar 23, 2015
1 parent 2cf69d6 commit 4df5aec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build
luv.so
luv.dll
luajit.exe
luv-*
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ reset:
git clean -f -d && \
git checkout .

publish-src: reset
tar -czvf luv-src.tar.gz \
--exclude 'luv-src.tar.gz' --exclude '.git*' --exclude build . && \
github-release upload --user luvit --repo luv --tag ${LUV_TAG} \
--file luv-src.tar.gz --name luv-src.tar.gz
publish-luarocks: reset
rm -rf luv-${LUV_TAG}
mkdir -p luv-${LUV_TAG}/deps
cp -r src CMakeLists.txt LICENSE.txt README.md docs.md luv-${LUV_TAG}/
cp -r deps/libuv deps/uv.cmake luv-${LUV_TAG}/deps/
tar -czvf luv-${LUV_TAG}.tar.gz luv-${LUV_TAG}
github-release upload --user luvit --repo luv --tag ${LUV_TAG} \
--file luv-${LUV_TAG}.tar.gz --name luv-${LUV_TAG}.tar.gz

5 changes: 2 additions & 3 deletions luv-1.4.2-1.rockspec → luv-1.4.2-2.rockspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package = "luv"
version = "1.4.2-1"
version = "1.4.2-2"
source = {
url = 'git://github.com/luvit/luv',
tag = 'v1.4.2',
url = 'https://github.com/luvit/luv/releases/download/1.4.2-2/luv-1.4.2-2.tar.gz',
}

description = {
Expand Down

0 comments on commit 4df5aec

Please sign in to comment.