wineinstall noinstall and no windows changes

Shachar Shemesh wine-patches at sun.consumer.org.il
Tue Nov 19 12:08:00 CST 2002


License: LGPL

ChangeLog:
Shachar Shemesh <winecode at sun.consumer.org.il>

tools/wineinstall

    * If running wineinstall and asking not to install, the symbolic
      links are no created pointing to the source tree files rather to
      the (non-existing) $libdir
    * If Windows is found on the system, the installer does not assume
      that the user is interested in using it. Instead, the user is
      asked, and if she answers "no", Wine is installed as if no Windows
      was found.
    * Changed the version number of the installer


-------------- next part --------------
Index: tools/wineinstall
===================================================================
RCS file: /home/sun/sources/cvs/wine/tools/wineinstall,v
retrieving revision 1.46
diff -u -r1.46 wineinstall
--- tools/wineinstall	18 Nov 2002 19:42:34 -0000	1.46
+++ tools/wineinstall	19 Nov 2002 17:56:38 -0000
@@ -186,7 +186,14 @@
 # - name of the installed winelib application
 # - full path to application in the winelib directory
 function link_app {
-  ln -sf $libdir/wine/$1.exe.so $2
+  if [ "$WINEINSTALLED" = 'no' ]
+  then {
+    ln -sf $PWD/programs/$1/$1.exe.so $2
+  }
+  else {
+    ln -sf $libdir/wine/$1.exe.so $2
+  }
+  fi
 }
 
 #puts windows applications replacements to windows directories,
@@ -210,7 +217,7 @@
 
 # startup...
 
-echo "WINE Installer v0.73"
+echo "WINE Installer v0.74"
 echo
 
 if [ "$BINDIST" = 'no' ]
@@ -398,6 +405,8 @@
         echo "Exiting wineinstall"
         exit 1;
       fi
+
+      WINEINSTALLED=yes
     }
     else {
       # user didn't want to install wine so tell them about running from the
@@ -415,6 +424,8 @@
       echo "LD_LIBRARY_PATH to $PWD:$DLLPATH"
       echo "in your logon scripts."
       echo
+
+      WINEINSTALLED=no
     }
     fi # [ "$ROOTINSTALL" = "yes" ]
   }
@@ -525,11 +536,23 @@
     else {
       echo " found."
 
-      conf_reset_question windows_found
-      conf_question low windows_found \
-       "Created $LCONF using your existing Windows installation." \
-       "You probably want to review the file, though."
-      DOWINE=no
+      conf_question low do_without_windows \
+       "Windows was found on your system, and so we can use the Windows" \
+       "Drive as our Wine drive. You may, however, wish to create a clean" \
+       "Wine install anyways."
+      conf_yesno_answer "Should I use the Windows drive for the Wine install? (yes/no) "
+      if [ "$ANSWER" = 'yes' ]
+      then {
+        conf_reset_question windows_found
+        conf_question low windows_found \
+         "Created $LCONF using your existing Windows installation." \
+         "You probably want to review the file, though."
+        DOWINE=no
+      }
+      else {
+        DOWINE=yes
+      }
+      fi
     }
     fi
   }


More information about the wine-patches mailing list