Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (22 sloc) 363 Bytes
#!/bin/bash
rm -Rf generated
mkdir generated
google-generator --target generated
packages=0
failures=0
for api in generated/*; do
((packages++))
cd $api
cabal configure
if [ $? -ne 0 ]; then
((failures++))
else
cabal build
if [ $? -ne 0 ]; then
((failures++))
fi
fi
cd -
done
echo "$failures/$packages failed"
exit $failures