X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=configure.sh;h=bbe14337af723251fbf314b20420e2f8289067dd;hb=HEAD;hp=42f8123945f905182436717804cbf83b26f417ef;hpb=7d04a702b88445f1b1cb7633879348a5dcdffbfa;p=nikiroo-utils.git diff --git a/configure.sh b/configure.sh deleted file mode 100755 index 42f8123..0000000 --- a/configure.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh - -# default: -PREFIX=/usr/local -PROGS="java javac jar make sed" - -valid=true -while [ "$*" != "" ]; do - key=`echo "$1" | cut -c1-9` - val=`echo "$1" | cut -c10-` - case "$key" in - --prefix=) - PREFIX="$val" - ;; - *) - echo "Unsupported parameter: '$1'" >&2 - valid=false - ;; - esac - shift -done - -[ $valid = false ] && exit 1 - -MESS="A required program cannot be found:" -for prog in $PROGS; do - out="`whereis -b "$prog" 2>/dev/null`" - if [ "$out" = "$prog:" ]; then - echo "$MESS $prog" >&2 - valid=false - fi -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 = be/nikiroo/fanfix/test/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/ jexer -C bin/ be -C bin/ VERSION" >> Makefile -#echo "SJAR_FLAGS += -C src/ org -C src/ jexer -C src/ be -C ./ LICENSE -C ./ README.md -C ./ VERSION" >> Makefile - -cat Makefile.base >> Makefile -