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
9ce1ad72
Commit
9ce1ad72
authored
Nov 26, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extras/tools: check for tar -J properly
we don't use 'xz' binary directly
parent
cb1111bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
extras/tools/bootstrap
extras/tools/bootstrap
+9
-6
No files found.
extras/tools/bootstrap
View file @
9ce1ad72
...
...
@@ -24,17 +24,20 @@ then
exit
1
fi
check_tar
()
{
if
!
tar
PcJ /dev/null
>
/dev/null 2>&1
then
echo
"tar doesn't support xz (J option)"
NEEDED
=
"
$NEEDED
.tar .xz"
fi
}
check
()
{
if
!
$1
--version
>
/dev/null 2>&1
then
echo
"
$1
not found"
NEEDED
=
"
$NEEDED
.
$1
"
else
if
[
"
$1
"
=
"xz"
]
&&
!
tar
PcJ /dev/null
>
/dev/null
then
echo
"tar doesn't support xz (J option)"
NEEDED
=
"
$NEEDED
.tar"
fi
# found, need to check version ?
[
-z
"
$2
"
]
&&
return
# no
# we only check GNU tools, their version have the form MAJOR.MINOR
...
...
@@ -55,9 +58,9 @@ check autoconf 2.67
check automake 1.11
check libtool 2.2
check pkg-config
check xz
check cmake
check yasm
check_tar
[
-n
"
$NEEDED
"
]
&&
mkdir
-p
build/
...
...
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