5 PROGS
="java javac jar make sed"
8 while [ "$*" != "" ]; do
9 key
=`echo "$1" | cut -c1-9`
10 val
=`echo "$1" | cut -c10-`
16 echo "Unsupported parameter: '$1'" >&2
23 [ $valid = false
] && exit 1
25 MESS
="A required program cannot be found:"
26 for prog
in $PROGS; do
27 out
="`whereis -b "$prog" 2>/dev/null`"
28 if [ "$out" = "$prog:" ]; then
29 echo "$MESS $prog" >&2
34 [ $valid = false
] && exit 2
36 if [ "`whereis tput`" = "tput:" ]; then
41 ok
='"`tput bold`[`tput setf 2` OK `tput init``tput bold`]`tput init`"';
42 ko
='"`tput bold`[`tput setf 4` !! `tput init``tput bold`]`tput init`"';
46 echo "MAIN = be/nikiroo/fanfix/Main" > Makefile
47 echo "TEST = be/nikiroo/fanfix/test/Test" >> Makefile
48 echo "TEST_PARAMS = $cols $ok $ko" >> Makefile
49 echo "NAME = fanfix" >> Makefile
50 echo "PREFIX = $PREFIX" >> Makefile
51 echo "JAR_FLAGS += -C bin/ org -C bin/ be -C bin/ VERSION" >> Makefile
52 #echo "SJAR_FLAGS += -C src/ org -C src/ be -C ./ LICENSE -C ./ README.md -C ./ VERSION" >> Makefile
54 cat Makefile.base
>> Makefile