X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=configure.sh;h=1da9835fa5a4c402432551f4ae832c06d36dee04;hp=2954620ed4927ab5954729caf8fc558694f55cdc;hb=a6395bef99a8e917f67341ef1906917b87df24a4;hpb=73ce17ef4569e43d24f8413ad6b59bc2906aec07 diff --git a/configure.sh b/configure.sh index 2954620..1da9835 100755 --- a/configure.sh +++ b/configure.sh @@ -33,7 +33,19 @@ done [ $valid = false ] && exit 2 +if [ "`whereis tput`" = "tput:" ]; then + ok='"[ ok ]"'; + ko='"[ !! ]"'; + cols=80; +else + ok='"`tput bold`[`tput setf 2` OK `tput init``tput bold`]`tput init`"'; + ko='"`tput bold`[`tput setf 4` !! `tput init``tput bold`]`tput init`"'; + cols='"`tput cols`"'; +fi; + echo "MAIN = be/nikiroo/fanfix/Main" > Makefile +echo "TEST = " >> Makefile +echo "TEST_PARAMS = $cols $ok $ko" >> Makefile echo "NAME = fanfix" >> Makefile echo "PREFIX = $PREFIX" >> Makefile echo "JAR_FLAGS += -C bin/ org -C bin/ be -C ./ VERSION" >> Makefile