#/bin/sh

if test -z $1; then
    printf "specify plugin to compile or 'all'\n"
    exit 0;
fi

if test $1 = "all"; then
    for i in *; do
        if test -d $i; then
    	    (cd $i; printf "Compiling in: %s\n" $i;
	    ./makedep
	    ./configure
	    make all )
	fi
    done; true
    exit 0;
fi

cd $1;
./makedep
./configure
make all
