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
b1be7245
Commit
b1be7245
authored
Mar 11, 2006
by
Pierre d'Herbemont
Committed by
Alexandre Julliard
Mar 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineprefixcreate: Make path searching relative.
parent
52645e11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
Makefile.in
tools/Makefile.in
+1
-1
wineprefixcreate.in
tools/wineprefixcreate.in
+25
-2
No files found.
tools/Makefile.in
View file @
b1be7245
...
...
@@ -70,7 +70,7 @@ bin2res$(EXEEXT): bin2res.o
$(CC)
$(CFLAGS)
-o
$@
bin2res.o
$(LIBPORT)
wineprefixcreate
:
wineprefixcreate.in
sed
-e
's,@dlldir\@,
$(dlldir)
,g'
-e
's,@datadir\@,
$(datadir)
,g'
$(SRCDIR)
/wineprefixcreate.in
>
$@
||
(
$(RM)
$@
&&
false
)
sed
-e
"s,@bintodlldir
\@
,
`
$(RELPATH)
$(bindir)
$(dlldir)
`
,g"
-e
"s,@bintodatadir
\@
,
`
$(RELPATH)
$(bindir)
$(datadir)
`
,g"
$(SRCDIR)
/wineprefixcreate.in
>
$@
||
(
$(RM)
$@
&&
false
)
chmod
+x wineprefixcreate
install install-lib
::
wineprefixcreate
...
...
tools/wineprefixcreate.in
View file @
b1be7245
...
...
@@ -36,8 +36,31 @@ usage()
set
-e
dlldir
=
"@dlldir@"
datadir
=
"@datadir@/wine"
bindir
=
""
case
"
$0
"
in
*
/
*
)
# $0 contains a path, use it
bindir
=
`
dirname
"
$0
"
`
;;
*
)
# no directory in $0, search in PATH
saved_ifs
=
$IFS
IFS
=
:
for
d
in
$PATH
do
IFS
=
$saved_ifs
if
[
-x
"
$d
/
$0
"
]
then
bindir
=
"
$d
"
break
fi
done
;;
esac
bindir
=
`
cd
"
$bindir
"
&&
pwd
`
dlldir
=
"
$bindir
/@bintodlldir@"
datadir
=
"
$bindir
/@bintodatadir@"
do_wait
=
0
quiet
=
0
...
...
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