Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d486e311
Commit
d486e311
authored
Jan 04, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: add support for openssl to check the sha512 hashes
parent
8d12038f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
contrib/src/main.mak
contrib/src/main.mak
+5
-3
No files found.
contrib/src/main.mak
View file @
d486e311
...
@@ -197,9 +197,11 @@ ZCAT ?= $(error Gunzip client (zcat) not found!)
...
@@ -197,9 +197,11 @@ ZCAT ?= $(error Gunzip client (zcat) not found!)
endif
endif
ifeq
($(shell sha512sum --version >/dev/null 2>&1 || echo FAIL),)
ifeq
($(shell sha512sum --version >/dev/null 2>&1 || echo FAIL),)
SHA512SUM
=
sha512sum
SHA512SUM
=
sha512sum
--check
else
ifeq
($(shell shasum --version >/dev/null 2>&1 || echo FAIL),)
else
ifeq
($(shell shasum --version >/dev/null 2>&1 || echo FAIL),)
SHA512SUM
=
shasum
-a
512
SHA512SUM
=
shasum
-a
512
--check
else
ifeq
($(shell openssl version >/dev/null 2>&1 || echo FAIL),)
SHA512SUM
=
openssl dgst
-sha512
else
else
SHA512SUM
=
$(
error
SHA-512 checksumming not found!
)
SHA512SUM
=
$(
error
SHA-512 checksumming not found!
)
endif
endif
...
@@ -247,7 +249,7 @@ checksum = \
...
@@ -247,7 +249,7 @@ checksum = \
$(
foreach
f,
$(
filter
$(TARBALLS)
/%,
$^
)
,
\
$(
foreach
f,
$(
filter
$(TARBALLS)
/%,
$^
)
,
\
grep
--
"
$
(f:
$(TARBALLS)
/%=%
)
$$
"
\
grep
--
"
$
(f:
$(TARBALLS)
/%=%
)
$$
"
\
"
$(SRC)
/
$(
patsubst
.sum-%,%,
$@
)
/
$(2)
SUMS"
&&
)
\
"
$(SRC)
/
$(
patsubst
.sum-%,%,
$@
)
/
$(2)
SUMS"
&&
)
\
(
cd
$(TARBALLS)
&&
$(1)
--check
/dev/stdin
)
<
\
(
cd
$(TARBALLS)
&&
$(1)
/dev/stdin
)
<
\
"
$(SRC)
/
$(
patsubst
.sum-%,%,
$@
)
/
$(2)
SUMS"
"
$(SRC)
/
$(
patsubst
.sum-%,%,
$@
)
/
$(2)
SUMS"
CHECK_SHA512
=
$(
call
checksum,
$(SHA512SUM)
,SHA512
)
CHECK_SHA512
=
$(
call
checksum,
$(SHA512SUM)
,SHA512
)
UNPACK
=
$(RM)
-R
$@
\
UNPACK
=
$(RM)
-R
$@
\
...
...
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