summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@users.sourceforge.jp>2009-10-05 23:31:08 +0900
committerfrsyuki <frsyuki@users.sourceforge.jp>2009-10-05 23:31:08 +0900
commitc8ad32a39ed19828fe98c9d6838002653861d3e5 (patch)
tree5dd2fec38be4cdafe260393acdea5770ca0cf7fa /cpp
parentd0b76814b026d18a13fe67d99505634f8878250d (diff)
downloadmsgpack-python-c8ad32a39ed19828fe98c9d6838002653861d3e5.tar.gz
cpp: preprocess.sh: more verbose
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/preprocess.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/preprocess.sh b/cpp/preprocess.sh
index 332dd9c..2e06c10 100755
--- a/cpp/preprocess.sh
+++ b/cpp/preprocess.sh
@@ -1,8 +1,14 @@
#!/bin/sh
preprocess() {
- erb $1.erb > $1.tmp
- mv $1.tmp $1
+ 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