Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
33a19efb
Commit
33a19efb
authored
Oct 13, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: Fix change_prefix when used on binaries != libraries
parent
8f7056b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
extras/contrib/change_prefix.sh
extras/contrib/change_prefix.sh
+7
-4
No files found.
extras/contrib/change_prefix.sh
View file @
33a19efb
...
...
@@ -48,17 +48,20 @@ files=`find . -type f`
for
file
in
$files
;
do
if
test
".
`
file
$file
|
grep
Mach-O
`
"
!=
"."
;
then
echo
"Changing prefixes of '
$file
'"
islib
=
n
if
test
".
`
file
$file
|
grep
'Mach-O dynamically'
`
"
!=
"."
;
then
islib
=
y
fi
libs
=
`
otool
-L
$file
2>/dev/null |
grep
$prefix
|
cut
-d
\
-f
1
`
WD
=
`
pwd
`
first
=
y
for
i
in
""
$libs
;
do
if
!
test
-z
$i
;
then
if
test
$first
=
y
;
then
if
!
test
-z
$i
;
then
if
test
$islib
=
y
-a
$first
=
y
;
then
install_name_tool
-id
`
echo
$i
|
sed
-e
"s,
$prefix
,
$new_prefix
,"
`
$file
first
=
n
else
install_name_tool
-change
$i
`
echo
$i
|
sed
-e
"s,
$prefix
,
$new_prefix
,"
`
$file
fi
fi
fi
done
elif
test
".
`
file
$file
|
grep
\"
text
\|
shell
\"
`
"
!=
"."
;
then
...
...
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