msgpack/cpp/preprocess

22 lines
470 B
Plaintext
Raw Normal View History

2009-08-19 17:50:15 +09:00
#!/bin/sh
2009-08-25 18:25:58 +09:00
preprocess() {
2009-10-05 23:31:08 +09:00
ruby -r erb -e 'puts ERB.new(ARGF.read).result' $1.erb > $1.tmp
if [ "$?" != 0 ]; then
echo ""
echo "** preprocess failed **"
echo ""
else
mv $1.tmp $1
fi
2009-08-19 17:50:15 +09:00
}
preprocess msgpack/type/tuple.hpp
preprocess msgpack/type/define.hpp
preprocess msgpack/zone.hpp
2010-04-18 00:08:03 +09:00
cp -f ../msgpack/pack_define.h msgpack/
cp -f ../msgpack/pack_template.h msgpack/
cp -f ../msgpack/unpack_define.h msgpack/
cp -f ../msgpack/unpack_template.h msgpack/
2009-08-19 17:50:15 +09:00