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
c33fbc0d
Commit
c33fbc0d
authored
Mar 17, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineprefixcreate: Autodetect the running from build tree case.
parent
c67728f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
wineprefixcreate.in
tools/wineprefixcreate.in
+33
-33
No files found.
tools/wineprefixcreate.in
View file @
c33fbc0d
...
...
@@ -29,7 +29,6 @@ usage()
echo
" -h, --help Display this message"
echo
" --prefix <dir> Directory to create (default:
\$
WINEPREFIX or ~/.wine)"
echo
" -q, --quiet Don't print status messages"
echo
" --use-wine-tree <dir> Run from the Wine build tree <dir>"
echo
" -w, --wait Wait for the wineserver to exit before returning"
echo
""
}
...
...
@@ -65,6 +64,38 @@ datadir="$bindir/@bintodatadir@"
do_wait
=
0
quiet
=
0
if
[
!
-f
"
$dlldir
/ntdll.dll.so"
-a
\
-x
"
$bindir
/../server/wineserver"
-a
\
-f
"
$bindir
/../dlls/ntdll/ntdll.dll.so"
]
then
# running from the wine source tree
topdir
=
`
cd
"
$bindir
/.."
&&
pwd
`
WINELOADER
=
"
$topdir
/wine"
WINESERVER
=
"
$topdir
/server/wineserver"
if
[
-n
"
$LD_LIBRARY_PATH
"
]
then
LD_LIBRARY_PATH
=
"
$topdir
/libs:
$LD_LIBRARY_PATH
"
else
LD_LIBRARY_PATH
=
"
$topdir
/libs"
fi
export
LD_LIBRARY_PATH
# find the source directory
link
=
`
readlink
"
$WINELOADER
"
`
if
[
-z
"
$link
"
]
then
topsrcdir
=
"
$topdir
"
else
link
=
`
dirname
"
$link
"
`
case
"
$link
"
in
/
*
)
topsrcdir
=
`
cd
"
$link
/.."
&&
pwd
`
;;
*
)
topsrcdir
=
`
cd
"
$topdir
/
$link
/.."
&&
pwd
`
;;
esac
fi
dlldir
=
"
$topdir
/programs"
datadir
=
"
$topsrcdir
/tools"
fi
while
[
$#
-gt
0
]
do
case
"
$1
"
in
...
...
@@ -85,38 +116,7 @@ do
shift
;;
--use-wine-tree
)
topdir
=
`
cd
"
$2
"
&&
pwd
`
if
[
-x
"
$topdir
/server/wineserver"
]
then
WINELOADER
=
"
$topdir
/wine"
WINESERVER
=
"
$topdir
/server/wineserver"
if
[
-n
"
$LD_LIBRARY_PATH
"
]
then
LD_LIBRARY_PATH
=
"
$topdir
/libs:
$LD_LIBRARY_PATH
"
else
LD_LIBRARY_PATH
=
"
$topdir
/libs"
fi
export
LD_LIBRARY_PATH
# find the source directory
link
=
`
readlink
"
$WINELOADER
"
`
if
[
-z
"
$link
"
]
then
topsrcdir
=
"
$topdir
"
else
link
=
`
dirname
"
$link
"
`
case
"
$link
"
in
/
*
)
topsrcdir
=
`
cd
"
$link
/.."
&&
pwd
`
;;
*
)
topsrcdir
=
`
cd
"
$topdir
/
$link
/.."
&&
pwd
`
;;
esac
fi
dlldir
=
"
$topdir
/programs"
datadir
=
"
$topsrcdir
/tools"
else
echo
"
$2
is not a valid Wine build tree"
exit
1
fi
# ignored, autodetected now
shift
2
;;
*
)
...
...
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