forked from msgpack/msgpack-c
-
Notifications
You must be signed in to change notification settings - Fork 1
/
preprocess
executable file
·23 lines (21 loc) · 1.01 KB
/
preprocess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
preprocess() {
echo $1
ruby -r erb -e 'puts ERB.new(ARGF.read).result' $1.erb > $1.tmp
if [ "$?" != 0 ]; then
echo ""
echo "** preprocess failed **"
echo ""
exit 1
else
mv $1.tmp $2
fi
}
preprocess erb/v1/cpp03_msgpack_tuple_decl.hpp include/msgpack/v1/adaptor/detail/cpp03_msgpack_tuple_decl.hpp
preprocess erb/v1/cpp03_msgpack_tuple.hpp include/msgpack/v1/adaptor/detail/cpp03_msgpack_tuple.hpp
preprocess erb/v1/cpp03_define_array_decl.hpp include/msgpack/v1/adaptor/detail/cpp03_define_array_decl.hpp
preprocess erb/v1/cpp03_define_array.hpp include/msgpack/v1/adaptor/detail/cpp03_define_array.hpp
preprocess erb/v1/cpp03_define_map_decl.hpp include/msgpack/v1/adaptor/detail/cpp03_define_map_decl.hpp
preprocess erb/v1/cpp03_define_map.hpp include/msgpack/v1/adaptor/detail/cpp03_define_map.hpp
preprocess erb/v1/cpp03_zone_decl.hpp include/msgpack/v1/detail/cpp03_zone_decl.hpp
preprocess erb/v1/cpp03_zone.hpp include/msgpack/v1/detail/cpp03_zone.hpp