Commit 1c2df36d authored by Austin English's avatar Austin English Committed by Alexandre Julliard

wineinstall: Ask about installation before running configure.

parent 70f00e91
...@@ -106,6 +106,17 @@ then ...@@ -106,6 +106,17 @@ then
std_sleep std_sleep
fi fi
# Ask the user if they want to build and install Wine:
echo
echo "We need to install Wine as the root user. Do you want us to build Wine,"
echo "'su root' and install Wine? Enter 'no' to build Wine without installing:"
conf_yesno_answer "(yes/no) "
ROOTINSTALL="$ANSWER"
if [ "$ROOTINSTALL" = "yes" ]
then sucommand="make install"
fi
# run the configure script, if necessary # run the configure script, if necessary
if [ -f Makefile ] if [ -f Makefile ]
...@@ -124,19 +135,7 @@ else ...@@ -124,19 +135,7 @@ else
fi fi
fi fi
# now do the compilation and install, we need to always do this because we # Now do the compilation and (optionally) installation
# don't want the 'make install' command we might run to run 'make' as root
# ask the user if they want to build and install wine
echo
echo "We need to install wine as root user, do you want us to build wine,"
echo "'su root' and install Wine? Enter 'no' to continue without installing"
conf_yesno_answer "(yes/no) "
ROOTINSTALL="$ANSWER"
if [ "$ROOTINSTALL" = "yes" ]
then sucommand="make install"
fi
echo echo
echo "Compiling Wine. Grab a lunch or two, rent a video, or whatever," echo "Compiling Wine. Grab a lunch or two, rent a video, or whatever,"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment