Cleanup configure
This commit is contained in:
parent
e8571c1bc8
commit
5cb015d6bb
|
@ -11,9 +11,9 @@ begin
|
|||
|
||||
begin_options
|
||||
|
||||
ask "Install prefix?" prefix ${prefix:-/usr/local}
|
||||
ask "Use LASH?" USE_LASH ${USE_LASH:-yes}
|
||||
ask "Build for debugging?" MAINTAINER_MODE ${MAINTAINER_MODE:-no}
|
||||
ask "Install prefix?" prefix /usr/local
|
||||
ask "Use LASH?" USE_LASH yes
|
||||
ask "Build for debugging?" MAINTAINER_MODE no
|
||||
|
||||
begin_tests
|
||||
|
||||
|
|
|
@ -20,14 +20,14 @@ ask ()
|
|||
default="`eval echo \\$$2`"
|
||||
default=${default:-$3}
|
||||
|
||||
echo -n "$BLACK$BOLD::$SGR0 $1 [$BOLD$3$SGR0] "
|
||||
echo -n "$BLACK$BOLD::$SGR0 $1 [$BOLD${default}$SGR0] "
|
||||
read answer
|
||||
echo "${2}=${answer:-$default}" >> make.conf
|
||||
}
|
||||
|
||||
ok ()
|
||||
{
|
||||
echo "$BOLD${GREEN}ok${SGR0}."
|
||||
echo "$BOLD${GREEN}ok${SGR0}"
|
||||
}
|
||||
|
||||
failed ()
|
||||
|
|
Loading…
Reference in New Issue