mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
cpp: preprocess.sh: more verbose
This commit is contained in:
parent
d0b76814b0
commit
c8ad32a39e
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue