#!/bin/sh -e

# chkclig - check out autoproject by building a source package using clig

# remember where the skeletons are buried
srcdir=${srcdir:-.}
HERE=`pwd`
rm -rf testclig
mkdir testclig; cd testclig
mkdir deeper; cd deeper
sh $HERE/autoproject -d  "dusts apartment" -L -L../../$srcdir/lib -i cli -e somebody@over.there --author "Some Body" duster <<EOF
c

clig
y
n
n
y
y
n
n
y
n
EOF
cd duster
make
make distcheck
