msgpack/ruby/makegem.sh

36 lines
918 B
Bash
Raw Normal View History

2010-02-06 21:28:27 +09:00
#!/bin/sh
mkdir -p ext
mkdir -p msgpack
cp extconf.rb ext/
cp pack.c ext/
cp pack.h ext/
cp rbinit.c ext/
cp unpack.c ext/
cp unpack.h ext/
2010-06-29 15:39:47 +09:00
cp version.rb ext/
2010-02-06 21:28:27 +09:00
cp ../msgpack/pack_define.h msgpack/
cp ../msgpack/pack_template.h msgpack/
cp ../msgpack/unpack_define.h msgpack/
cp ../msgpack/unpack_template.h msgpack/
cp ../msgpack/sysdep.h msgpack/
2010-06-01 16:35:21 +09:00
cp ../test/cases.mpac test/
cp ../test/cases_compact.mpac test/
cp ../test/cases.json test/
2010-02-06 21:28:27 +09:00
gem build msgpack.gemspec
rdoc rbinit.c pack.c unpack.c
if [ $? -eq 0 ]; then
2010-04-22 14:56:25 +09:00
rm -rf ext msgpack test/msgpack_test.rb
fi
# gem install gem-compile # on msys
# gem compile msgpack-$version.gem # on msys
# gem compile msgpack-$version.gem -p mswin32 # on msys
2010-03-02 17:09:59 +09:00
# gem push msgpack-$version.gem
# gem push msgpack-$version-x86-mingw32.gem
# gem push msgpack-$version-mswin32.gem