Description: Install files to temporary directory for packaging Author: Dave Hibberd Last-Update: 2018-12-27 --- a/configure +++ b/configure @@ -1,5 +1,11 @@ #!/bin/sh +echo -n "Use interactive mode? [Y/n]: "; read answer +if [ "$answer" = "Y" -o "$answer" = "y" -o "$answer" = "" ] + then NON_INTERACTIVE=0; + else NON_INTERACTIVE=1; +fi + _sleep() { [ "$NON_INTERACTIVE" = 1 ] || sleep "$@" @@ -14,13 +20,13 @@ _sleep 2 make distclean > make.debug -[ "$ETC_DIR" ] || ETC_DIR=/etc/ax25 -[ "$SBIN_DIR" ] || SBIN_DIR=/usr/sbin -[ "$BIN_DIR" ] || BIN_DIR=/usr/bin -[ "$LIB_DIR" ] || LIB_DIR=/usr/lib -[ "$DATA_DIR" ] || DATA_DIR=/usr/share -[ "$MAN_DIR" ] || MAN_DIR=/usr/share/man -[ "$VAR_DIR" ] || VAR_DIR=/var/lib/ax25 +[ "$ETC_DIR" ] || ETC_DIR=/usr/local/etc/ax25 +[ "$SBIN_DIR" ] || SBIN_DIR=/usr/local/sbin +[ "$BIN_DIR" ] || BIN_DIR=/usr/local/bin +[ "$LIB_DIR" ] || LIB_DIR=/usr/local/lib +[ "$DATA_DIR" ] || DATA_DIR=/usr/local/share +[ "$MAN_DIR" ] || MAN_DIR=/usr/local/share/man +[ "$VAR_DIR" ] || VAR_DIR=/usr/local/var/ax25 echo "Welcome to the configuration utility for URONode. This configure script" echo "will very simply and easily guide you into installling URONode with as"