c,cpp: reforms source tree

This commit is contained in:
frsyuki
2010-04-18 00:08:03 +09:00
parent c3f43fb0cf
commit ab8e0c9e31
36 changed files with 159 additions and 721 deletions

21
cpp/preprocess Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
preprocess() {
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
}
preprocess msgpack/type/tuple.hpp
preprocess msgpack/type/define.hpp
preprocess msgpack/zone.hpp
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/