1#!/bin/sh 2# to really generate all files you need to run "make distcheck" in a 3# object tree, but this will do if you have all parts of the required 4# tool-chain installed 5set -e 6autoreconf -f -i || { echo "autoreconf failed: $?"; exit 1; } 7find . \( -name '*-private.h' -o -name '*-protos.h' \) | xargs rm -f 8perl -MJSON -e 'print foo;' || \ 9 { echo "you must install JSON perl module (cpan install JSON)"; exit 1; } 10