tools/wineinstall: ask about installation before running configure

Austin English austinenglish at gmail.com
Fri Jul 24 13:20:09 CDT 2009


Fixes http://bugs.winehq.org/show_bug.cgi?id=11618.

-- 
-Austin
-------------- next part --------------
From 350835991af3d3ea905f772db14d0032b76574fc Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Fri, 24 Jul 2009 13:17:57 -0500
Subject: [PATCH] tools/wineinstall: ask about installation before running configure

---
 tools/wineinstall |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/tools/wineinstall b/tools/wineinstall
index 17e86a9..e8e22bf 100755
--- a/tools/wineinstall
+++ b/tools/wineinstall
@@ -106,6 +106,17 @@ then
     std_sleep
 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
 
 if [ -f Makefile ]
@@ -124,19 +135,7 @@ else
     fi
 fi
 
-# now do the compilation and install, we need to always do this because we
-# 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
+# Now do the compilation and (optionally) installation
 
 echo
 echo "Compiling Wine. Grab a lunch or two, rent a video, or whatever,"
-- 
1.5.4.3


More information about the wine-patches mailing list