X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=configure.sh;h=026db922830dffab71676b498eea2070223c771d;hb=80383c142f85a7850d0fbea418689608fdccac05;hp=ed494b7d9d4e6a60494d870ed38a440cbcab68da;hpb=2cce3dcb72c55aa5cca66e1398f23906e286abc8;p=nikiroo-utils.git diff --git a/configure.sh b/configure.sh index ed494b7..026db92 100755 --- a/configure.sh +++ b/configure.sh @@ -33,8 +33,21 @@ 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/utils/resources/TransBundle" > Makefile -echo "MORE = be/nikiroo/utils/StringUtils be/nikiroo/utils/IOUtils be/nikiroo/utils/MarkableFileInputStream" >> Makefile +echo "MORE = be/nikiroo/utils/StringUtils be/nikiroo/utils/IOUtils be/nikiroo/utils/MarkableFileInputStream be/nikiroo/utils/test/TestLauncher" >> Makefile +echo "TEST = be/nikiroo/utils/test/Test" >> Makefile +echo "TEST_PARAMS = $cols $ok $ko" >> Makefile echo "NAME = nikiroo-utils" >> Makefile echo "PREFIX = $PREFIX" >> Makefile echo "JAR_FLAGS += -C bin/ be" >> Makefile