From c4dac416b4e4bb39dbf2b87c373e84721d7b0cb0 Mon Sep 17 00:00:00 2001 From: asami Date: Wed, 4 Dec 1996 11:06:05 +0000 Subject: Only ask essential questions (i.e., don't ask if it's ok to put the binary in /usr/X11R6/bin, if that's not ok, 400 ports will break anyway). Submitted by: "Daniel M. Eischen" --- audio/xmcd/files/patch-ab | 137 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 audio/xmcd/files/patch-ab (limited to 'audio/xmcd') diff --git a/audio/xmcd/files/patch-ab b/audio/xmcd/files/patch-ab new file mode 100644 index 000000000000..f1fe4febd1d7 --- /dev/null +++ b/audio/xmcd/files/patch-ab @@ -0,0 +1,137 @@ +*** install.sh.orig Tue Dec 3 19:27:22 1996 +--- install.sh Tue Dec 3 20:18:07 1996 +*************** +*** 47,52 **** +--- 47,55 ---- + ERRFILE=/tmp/xmcd.err + TMPFILE=/tmp/xmcdinst.$$ + ++ # Flag for indicating we do not want to prompt the user if possible. ++ NO_PROMPT=1 ++ + # + # Utility functions + # +*************** +*** 542,548 **** + + while : + do +! if getstr "\nEnter X binary directory\n[${BINDIR}]:" + then + if [ -d "$ANS" ] + then +--- 545,555 ---- + + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X binary directory - using ${BINDIR}" +! break +! elif getstr "\nEnter X binary directory\n[${BINDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 594,600 **** + + while : + do +! if getstr "\nEnter X library directory\n[${LIBDIR}]:" + then + if [ -d "$ANS" ] + then +--- 601,611 ---- + + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X library directory - using ${LIBDIR}" +! break +! elif getstr "\nEnter X library directory\n[${LIBDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 613,619 **** + APPDEFAULTSDIR=$LIBDIR/app-defaults + while : + do +! if getstr "\nEnter X app-defaults directory\n[${APPDEFAULTSDIR}]:" + then + if [ -d "$ANS" ] + then +--- 624,634 ---- + APPDEFAULTSDIR=$LIBDIR/app-defaults + while : + do +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "X app-defaults directory - using ${LIBDIR}" +! break +! elif getstr "\nEnter X app-defaults directory\n[${APPDEFAULTSDIR}]:" + then + if [ -d "$ANS" ] + then +*************** +*** 648,654 **** + MANFILE=`echo $MANFILE | sed 's/\/\//\//g'` + fi + +! if getstr "\nEnter xmcd on-line manual file path\n[${MANFILE}]:" + then + MANFILE=$ANS + fi +--- 663,672 ---- + MANFILE=`echo $MANFILE | sed 's/\/\//\//g'` + fi + +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "xmcd on-line manual file path - using ${MANFILE}" +! elif getstr "\nEnter xmcd on-line manual file path\n[${MANFILE}]:" + then + MANFILE=$ANS + fi +*************** +*** 670,676 **** + # Determine CMANFILE + + CMANFILE="`dirname $MANFILE`/`basename $MANFILE | sed 's/xmcd/cda/'`" +! if getstr "\nEnter cda on-line manual file path\n[${CMANFILE}]:" + then + CMANFILE=$ANS + fi +--- 688,697 ---- + # Determine CMANFILE + + CMANFILE="`dirname $MANFILE`/`basename $MANFILE | sed 's/xmcd/cda/'`" +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "cda on-line manual file path - using ${CMANFILE}" +! elif getstr "\nEnter cda on-line manual file path\n[${CMANFILE}]:" + then + CMANFILE=$ANS + fi +*************** +*** 692,698 **** + # Determine WMANFILE + + WMANFILE="`dirname $MANFILE`/`basename $MANFILE | sed 's/xmcd/wm2xmcd/'`" +! if getstr "\nEnter wm2xmcd on-line manual file path\n[${WMANFILE}]:" + then + WMANFILE=$ANS + fi +--- 713,722 ---- + # Determine WMANFILE + + WMANFILE="`dirname $MANFILE`/`basename $MANFILE | sed 's/xmcd/wm2xmcd/'`" +! if [ -n "$NO_PROMPT" ] +! then +! $ECHO "wm2xmcd on-line manual file path - using ${WMANFILE}" +! elif getstr "\nEnter wm2xmcd on-line manual file path\n[${WMANFILE}]:" + then + WMANFILE=$ANS + fi -- cgit