Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
a60f82ff
Commit
a60f82ff
authored
5 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
jni: check for swig 4.0+
Change-Id: Ia4eeeb6c2111934e6dc12fa7f2fe47aaf1034ee8
parent
c285b541
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/jni/make-swig.sh
+3
-12
3 additions, 12 deletions
bin/jni/make-swig.sh
with
3 additions
and
12 deletions
bin/jni/make-swig.sh
+
3
−
12
View file @
a60f82ff
...
...
@@ -26,22 +26,13 @@ if [ -z "$PACKAGEDIR" ]; then
exit
1
fi
echo
"Checking for SWIG version
3
.0.
8
or later"
echo
"Checking for SWIG version
4
.0.
0
or later"
SWIGVER
=
`
swig
-version
|
grep
-i
"SWIG version"
|
awk
'{print $3}'
`
SWIGVER1
=
`
echo
$SWIGVER
|
awk
'{split($0, array, ".")} END{print array[1]}'
`
SWIGVER2
=
`
echo
$SWIGVER
|
awk
'{split($0, array, ".")} END{print array[2]}'
`
SWIGVER3
=
`
echo
$SWIGVER
|
awk
'{split($0, array, ".")} END{print array[3]}'
`
if
[[
$SWIGVER1
-ge
3
]]
;
then
if
[[
$SWIGVER1
-eq
3
]]
;
then
if
[[
$SWIGVER2
-eq
0
]]
;
then
if
[[
$SWIGVER3
-lt
8
]]
;
then
echo
"error: SWIG version
$SWIGVER1
.
$SWIGVER2
.
$SWIGVER3
is less than 3.0.8"
exit
4
fi
fi
fi
else
echo
"error: SWIG version
$SWIGVER1
.
$SWIGVER2
.
$SWIGVER3
is less than 3.x"
if
[[
$SWIGVER1
-lt
4
]]
;
then
echo
"error: SWIG version
$SWIGVER1
.
$SWIGVER2
.
$SWIGVER3
is less than 4.x"
exit
3
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment