Version 1.2.3: getVersion, openResource, fixes
[nikiroo-utils.git] / configure.sh
index ed494b7d9d4e6a60494d870ed38a440cbcab68da..713c9f46fe52430a99e25af94298fde825ae661e 100755 (executable)
@@ -33,11 +33,24 @@ done
 
 [ $valid = false ] && exit 2
 
-echo "MAIN = be/nikiroo/utils/resources/TransBundle" > Makefile
-echo "MORE = be/nikiroo/utils/StringUtils be/nikiroo/utils/IOUtils be/nikiroo/utils/MarkableFileInputStream" >> Makefile
+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/test/Test" > Makefile
+echo "MORE = be/nikiroo/utils/StringUtils be/nikiroo/utils/IOUtils be/nikiroo/utils/MarkableFileInputStream be/nikiroo/utils/ui/UIUtils be/nikiroo/utils/ui/WrapLayout be/nikiroo/utils/ui/ProgressBar be/nikiroo/utils/resources/TransBundle" >> 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
+echo "JAR_FLAGS += -C bin/ be -C bin/ VERSION" >> Makefile
 echo "SJAR_FLAGS += -C src/ be" >> Makefile
 
 cat Makefile.base >> Makefile