2 # WINE Installation script
4 # Mar 31 1999 - Ove Kåven
9 sysconfdir
=/usr
/local
/etc
15 echo "WINE Installer v0.1"
19 echo "You're running this from the wrong directory."
20 echo "Change to the Wine directory and try again."
25 # run the configure script, if necessary
27 if [ -f Makefile
] && [ Makefile
-nt configure
]
29 echo "I see that WINE has already been configured, so I'll skip that."
32 # we'll run with defaults (we need libwine.a later)
33 echo "Running configure..."
38 echo "Configure failed, aborting install."
43 # make sure X was found
44 if ! grep -qs "have_x=yes" config.cache
46 echo "Install the X development headers and try again."
54 # now do the compilation
56 if [ -f wine
] && [ wine
-nt Makefile
]
58 echo "Hmm, looks like WINE is already compiled. I'll skip that too, I guess."
61 echo "Compiling WINE. Grab a lunch or two, rent a video, or whatever, in the meantime..."
63 if ! { make depend
&& make; }
66 echo "Compilation failed, aborting install."
74 # and installation, if root
76 if [ `whoami` != 'root' ]
78 echo "You aren't root, so I'll skip the make install."
81 echo "Now installing binaries onto the system..."
86 echo "Installation failed, aborting."
94 # now check whether we should generate wine.conf
99 if [ "$DOCONF" = 'auto' ]
101 # see if we already have a system wine.conf
102 if [ -f $sysconfdir/wine.conf
] ||
[ -f /etc
/wine.conf
]
108 if [ "$DOCONF" != 'no' ]
110 if [ `whoami` != 'root' ]
115 if [ "$DOCONF" != 'yes' ]
117 echo "Since you aren't root, and there's no system wine.conf, I assume"
118 echo "you want a user-specific .winerc. Am I correct? (yes/no)"
119 while [ "$DOCONF" != 'yes' ] && [ "$DOCONF" != 'no' ]
124 if [ "$DOCONF" = 'no' ]
125 then echo "Skipping generation of .winerc."
131 CONF
=$sysconfdir/wine.conf
139 if [ "$DOCONF" = 'yes' ]
141 echo "Now automatically generating $CONF for you..."
143 tools
/wineconf
> $CONF
145 echo "Done. You probably want to review the file, though."
150 # install default registry entries
151 if [ "$DOREG" = 'yes' ]
153 echo "Compiling regapi..."
155 (cd programs
/regapi
; make)
157 echo "Installing default registry entries, please wait..."
159 if ! programs
/regapi
/regapi setValue
< winedefault.reg
162 echo "Registry install failed. Perhaps you weren't running X."
168 echo "Installation complete for now. Good luck (this is still alpha software)."
169 echo "If you have problems with WINE, please read the documentation first."