msgpack/cpp/preprocess.sh

18 lines
294 B
Bash
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