Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bd603640
Commit
bd603640
authored
Apr 01, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Beginnings of a script to initialize the .wine directory (with help
from Chris Morgan).
parent
126227a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
3 deletions
+115
-3
.cvsignore
tools/.cvsignore
+1
-0
Makefile.in
tools/Makefile.in
+9
-3
wineprefixcreate.in
tools/wineprefixcreate.in
+105
-0
No files found.
tools/.cvsignore
View file @
bd603640
...
...
@@ -2,3 +2,4 @@ Makefile
bin2res
fnt2bdf
makedep
wineprefixcreate
tools/Makefile.in
View file @
bd603640
...
...
@@ -8,7 +8,8 @@ MODULE = none
PROGRAMS
=
\
bin2res
\
fnt2bdf
\
makedep
makedep
\
wineprefixcreate
C_SRCS
=
\
bin2res.c
\
...
...
@@ -40,13 +41,18 @@ fnt2bdf: fnt2bdf.o
bin2res
:
bin2res.o
$(CC)
$(CFLAGS)
-o
bin2res bin2res.o
$(LIBPORT)
install
::
wineprefixcreate
:
wineprefixcreate.in
sed
-e
's,@dlldir\@,
$(dlldir)
,g'
-e
's,@datadir\@,
$(datadir)
,g'
$(SRCDIR)
/wineprefixcreate.in
>
$@
||
(
$(RM)
$@
&&
false
)
chmod
+x wineprefixcreate
install
::
wineprefixcreate
$(MKINSTALLDIRS)
$(bindir)
$(mandir)
/man
$(prog_manext)
$(datadir)
/wine
$(INSTALL_SCRIPT)
$(SRCDIR)
/winemaker
$(bindir)
/winemaker
$(INSTALL_SCRIPT)
wineprefixcreate
$(bindir)
/wineprefixcreate
$(INSTALL_DATA)
$(SRCDIR)
/winemaker.man
$(mandir)
/man
$(prog_manext)
/winemaker.
$(prog_manext)
$(INSTALL_DATA)
$(SRCDIR)
/wine.inf
$(datadir)
/wine/wine.inf
uninstall
::
$(RM)
$(bindir)
/winemaker
$(mandir)
/man
$(prog_manext)
/winemaker.
$(prog_manext)
$(datadir)
/wine/wine.inf
$(RM)
$(bindir)
/winemaker
$(
bindir)
/wineprefixcreate
$(
mandir)
/man
$(prog_manext)
/winemaker.
$(prog_manext)
$(datadir)
/wine/wine.inf
### Dependencies:
tools/wineprefixcreate.in
0 → 100644
View file @
bd603640
#!/bin/sh
#
# Script to create the initial WINEPREFIX directory
#
# Copyright 1999 Ove Kven
# Copyright 2004 Chris Morgan
# Copyright 2004 Alexandre Julliard
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
dlldir
=
@dlldir@
datadir
=
@datadir@
WINEPREFIX
=
"
${
1
:-
$WINEPREFIX
}
"
WINEPREFIX
=
"
${
WINEPREFIX
:-
$HOME
/.wine
}
"
if
[
-d
"
$WINEPREFIX
"
]
then
echo
"The
$WINEPREFIX
directory already exists, aborting"
exit
1
fi
if
mkdir
"
$WINEPREFIX
"
;
then
:
else
echo
"Could not create
$WINEPREFIX
, aborting"
exit
1
fi
CROOT
=
"
$WINEPREFIX
/drive_c"
# Create the directory tree
for
i
in
\
"
$WINEPREFIX
/dosdevices"
\
"
$CROOT
"
\
"
$CROOT
/windows"
\
"
$CROOT
/windows/command"
\
"
$CROOT
/windows/fonts"
\
"
$CROOT
/windows/inf"
\
"
$CROOT
/windows/profiles"
\
"
$CROOT
/windows/profiles/Administrator"
\
"
$CROOT
/windows/Program Files"
\
"
$CROOT
/windows/Program Files/Common Files"
\
"
$CROOT
/windows/Start Menu"
\
"
$CROOT
/windows/Start Menu/Programs"
\
"
$CROOT
/windows/Start Menu/Programs/Startup"
\
"
$CROOT
/windows/system"
\
"
$CROOT
/windows/temp"
do
mkdir
"
$i
"
done
# Create the drive symlinks
ln
-s
"../drive_c"
"
$WINEPREFIX
/dosdevices/c:"
ln
-s
"/"
"
$WINEPREFIX
/dosdevices/z:"
# Create the application symlinks
link_app
()
{
ln
-s
"
$dlldir
/
$1
.exe.so"
"
$2
"
||
echo
"Warning: failed to create
$2
"
}
link_app start
"
$CROOT
/windows/command/start.exe"
link_app notepad
"
$CROOT
/windows/notepad.exe"
link_app regedit
"
$CROOT
/windows/regedit.exe"
link_app rundll32
"
$CROOT
/windows/rundll32.exe"
link_app wcmd
"
$CROOT
/windows/system/wcmd.exe"
link_app control
"
$CROOT
/windows/system/control.exe"
link_app winhelp
"
$CROOT
/windows/system/help.exe"
link_app notepad
"
$CROOT
/windows/system/notepad.exe"
link_app progman
"
$CROOT
/windows/system/progman.exe"
link_app regsvr32
"
$CROOT
/windows/system/regsvr32.exe"
link_app winemine
"
$CROOT
/windows/system/winmine.exe"
link_app winver
"
$CROOT
/windows/system/winver.exe"
link_app uninstaller
"
$CROOT
/windows/uninstall.exe"
link_app winhelp
"
$CROOT
/windows/winhelp.exe"
link_app winhelp
"
$CROOT
/windows/winhlp32.exe"
link_app winebrowser
"
$CROOT
/windows/winebrowser.exe"
# Copy the .inf script and run it
cp
"
$datadir
/wine/wine.inf"
"
$CROOT
/windows/inf/wine.inf"
export
WINEPREFIX
${
WINELOADER
:-
wine
}
rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 wine.inf
# Wait for the wineserver to finish
${
WINESERVER
:-
wineserver
}
-w
echo
"
$WINEPREFIX
created successfully."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment