Allow wineinstall to be run from tools/

Vincent Béron vberon at mecano.gme.usherb.ca
Sat Oct 12 10:34:32 CDT 2002


Changelog:
Allow wineinstall to be run from tools/ or from the main Wine directory.

Vincent
-------------- next part --------------
Index: wineinstall
===================================================================
RCS file: /home/wine/wine/tools/wineinstall,v
retrieving revision 1.41
diff -u -r1.41 wineinstall
--- wineinstall	23 Sep 2002 19:55:12 -0000	1.41
+++ wineinstall	12 Oct 2002 15:26:05 -0000
@@ -222,9 +222,16 @@
 
   if ! [ -f configure ]
   then {
-    echo "You're running this from the wrong directory."
-    echo "Change to the Wine source's main directory and try again."
-    exit 1
+    if [ -f ../configure ]
+    then {
+      pushd ..
+    }
+    else {
+      echo "You're running this from the wrong directory."
+      echo "Change to the Wine source's main directory and try again."
+      exit 1
+    }
+    fi
   }
   fi
 


More information about the wine-patches mailing list