X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=inline;f=configure.sh;h=4256eb36f1952e465a17dd932a9b4519721af527;hb=HEAD;hp=1c1a529c9bcf3d4ec43686a94a21fc2cc29a8297;hpb=e14f67abf357c8db74aa230faf8922f93f59c7d6;p=nikiroo-utils.git diff --git a/configure.sh b/configure.sh deleted file mode 100755 index 1c1a529..0000000 --- a/configure.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh - -# default: -PREFIX=/usr/local -PROGS="java javac jar make sed" - -IMG=be/nikiroo/utils/ui/ImageUtilsAwt - -valid=true -while [ "$*" != "" ]; do - key=`echo "$1" | cut -f1 -d=` - val=`echo "$1" | cut -f2 -d=` - case "$key" in - --) - ;; - --help) # This help message - echo The following arguments can be used: - cat "$0" | grep '^\s*--' | grep '#' | while read ln; do - cmd=`echo "$ln" | cut -f1 -d')'` - msg=`echo "$ln" | cut -f2 -d'#'` - echo " $cmd$msg" - done - ;; - --prefix) #=PATH Change the prefix to the given path - PREFIX="$val" - ;; - *) - echo "Unsupported parameter: '$1'" >&2 - echo >&2 - sh "$0" --help >&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`"'; - ok='"`tput bold`[`tput setaf 2` OK `tput init``tput bold`]`tput init`"'; - ko='"`tput bold`[`tput setaf 1` !! `tput init``tput bold`]`tput init`"'; - cols='"`tput cols`"'; -fi; - -echo "MAIN = be/nikiroo/fanfix/Main" > Makefile -echo "MORE = $IMG" >> 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/ be -C ./ LICENSE -C ./ VERSION -C libs/ licenses" >> Makefile - -cat Makefile.base >> Makefile -