Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4a1ff800
Commit
4a1ff800
authored
May 27, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib/change_prefix.sh: don't run sed on binary files
parent
18d13c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
contrib/src/change_prefix.sh
contrib/src/change_prefix.sh
+6
-2
No files found.
contrib/src/change_prefix.sh
View file @
4a1ff800
...
@@ -43,16 +43,20 @@ else
...
@@ -43,16 +43,20 @@ else
new_prefix
=
$2
new_prefix
=
$2
fi
fi
# process [dir] [filemask]
# process [dir] [filemask]
[text only]
process
()
{
process
()
{
for
file
in
`
find
$1
-maxdepth
1
-type
f
-name
"
$2
"
`
for
file
in
`
find
$1
-maxdepth
1
-type
f
-name
"
$2
"
`
do
do
if
[
-n
"
$3
"
]
then
file
$file
|
sed
"s/^.*: //"
|
grep
-q
'text\|shell'
||
continue
fi
echo
"Fixing up
$file
"
echo
"Fixing up
$file
"
sed
-i
.orig
-e
"s,
$old_prefix
,
$new_prefix
,g"
$file
sed
-i
.orig
-e
"s,
$old_prefix
,
$new_prefix
,g"
$file
rm
-f
$file
.orig
rm
-f
$file
.orig
done
done
}
}
process bin/
"*"
process bin/
"*"
check
process lib/
"*.la"
process lib/
"*.la"
process lib/pkgconfig/
"*.pc"
process lib/pkgconfig/
"*.pc"
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