moved cog to compile time, now aware of its own version

This commit is contained in:
Nicholas O'Connor
2017-03-22 22:01:34 -07:00
parent b34430b9e2
commit 207599eab1
5 changed files with 54 additions and 19 deletions

View File

@@ -4,19 +4,4 @@ if [ ! -d "m4" ]; then
mkdir m4
fi
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
autoreconf --install