2 # A script for testing compilability of different configurations
3 # (c) 2004 Martin Mares <mj@ucw.cz>
12 echo "### Test $TEST: $@ ###"
17 APP="!!### Added by check-customs:"
18 while [ -n "$1" ] ; do
21 if [ "$X" != "$Y" ] ; then
22 SUBST="${S}/^$Y/s/^/# /;"
29 mkdir custom custom/lib
30 cp $CUST/lib/custom.h custom/lib/
31 cp $CUST/Makefile custom/
32 sed "$SUBST;p;d" <$CUST/config.mk >custom/config.mk
33 echo $APP | tr ! '\n' >>custom/config.mk
35 make clean >test$TEST.log 2>&1
36 if ! make >>test$TEST.log 2>&1 ; then
43 if [ -e custom -a ! -e custom.old ] ; then
51 try debug/custom # debugging configuration
52 try free # the free version
53 try bare !CONFIG_INDEXER !CONFIG_SEARCH # absolutely stripped version
54 try bare # the bare version
55 try centrum !CONFIG_GATHERER !CONFIG_GATHERD !CONFIG_SHEPHERD !CONFIG_REAPD !CONFIG_INDEXER !CONFIG_MUX !CONFIG_WATSON # search servers
56 try centrum !CONFIG_GATHERER !CONFIG_GATHERD !CONFIG_SHEPHERD !CONFIG_REAPD !CONFIG_MUX !CONFIG_WATSON # indexing server
57 try centrum !CONFIG_GATHERD !CONFIG_SHEPHERD !CONFIG_INDEXER !CONFIG_SEARCH !CONFIG_MUX !CONFIG_WATSON # reapd server
58 try centrum # full Centrum config
62 if [ -e custom.old ] ; then