2017-03-12 17:38:48 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ ! -d "m4" ]; then
|
|
|
|
mkdir m4
|
|
|
|
fi
|
|
|
|
|
2017-03-22 20:31:46 -07:00
|
|
|
export COG=$(command -v cog)
|
|
|
|
[ -z "$COG"] && export COG=$(command -v cog.py)
|
|
|
|
|
|
|
|
if [ -z "$COG" ]; then
|
|
|
|
echo "Please install the Cog code generator, probably with pip install cogapp"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "cog found at $COG"
|
|
|
|
for cogfile in $(find src -name "*.cog"); do
|
|
|
|
decogged=${cogfile%.cog}
|
|
|
|
echo "greasing cog for ${decogged}..."
|
|
|
|
$COG -d -o ${decogged} ${cogfile}
|
|
|
|
done
|
|
|
|
|
2017-03-12 17:38:48 -07:00
|
|
|
autoreconf --install
|