summaryrefslogtreecommitdiff
path: root/ruby/gengem.sh
blob: 359debf3d8f5a003d8d43d0d88248c4e578de4b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

mkdir -p gem/ext
mkdir -p gem/msgpack
cp extconf.rb       gem/ext/
cp pack.c           gem/ext/
cp pack.h           gem/ext/
cp rbinit.c         gem/ext/
cp unpack.c         gem/ext/
cp unpack.h         gem/ext/
cat test_case.rb | sed "s/require ['\"]msgpack['\"]/require File.dirname(__FILE__) + '\/test_helper.rb'/" > gem/test/msgpack_test.rb
cp ../AUTHORS        gem/AUTHORS
cp ../ChangeLog      gem/ChangeLog
cp ../msgpack/pack_define.h     gem/msgpack/
cp ../msgpack/pack_template.h   gem/msgpack/
cp ../msgpack/unpack_define.h   gem/msgpack/
cp ../msgpack/unpack_template.h gem/msgpack/
cp ../msgpack/sysdep.h          gem/msgpack/

cd gem && rake --trace package