Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
5031a1db
Commit
5031a1db
authored
Apr 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move stdc++ checking code to is_stdcpp_enouch() function
parent
f263881e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
common.sh
play.d/common.sh
+19
-0
lycheeslicer.sh
play.d/lycheeslicer.sh
+1
-10
No files found.
play.d/common.sh
View file @
5031a1db
...
@@ -66,6 +66,25 @@ get_pkgvendor()
...
@@ -66,6 +66,25 @@ get_pkgvendor()
epm print field Vendor
for
package
$1
epm print field Vendor
for
package
$1
}
}
# arg: minimal require of libstdc++ version
# return true is we have such version
is_stdcpp_enough
()
{
local
needed
=
"
$1
"
local
STDCPKG
=
"libstdc++"
epm installed
$STDCPKG
||
STDCPKG
=
"libstdc++6"
if
epm installed
$STDCPKG
;
then
local
stdcver
stdcver
=
$(
epm print version
for
package
"
$STDCPKG
"
|
head
-n1
)
if
[
-n
"
$stdcver
"
]
&&
[
"
$(
epm print compare version
"
$stdcver
"
"
$needed
"
)
"
=
"-1"
]
;
then
return
1
fi
fi
return
0
}
get_first
()
get_first
()
{
{
echo
"
$1
"
echo
"
$1
"
...
...
play.d/lycheeslicer.sh
View file @
5031a1db
...
@@ -15,16 +15,7 @@ case "$(epm print info -s)" in
...
@@ -15,16 +15,7 @@ case "$(epm print info -s)" in
;;
;;
esac
esac
STDCPKG
=
"libstdc++"
is_stdcpp_enough
"11.0"
||
VERSION
=
"4.1.0"
epm installed
$STDCPKG
||
STDCPKG
=
"libstdc++6"
if
epm installed
$STDCPKG
;
then
stdcver
=
$(
epm print version
for
package
"
$STDCPKG
"
|
head
-n1
)
if
[
-n
"
$stdcver
"
]
&&
[
"
$(
epm print compare version
"
$stdcver
"
"11.0"
)
"
=
"-1"
]
;
then
# all next versions require libstdc++ >= 11 (libstdc++.so.6(GLIBCXX_3.4.29)(64bit))
VERSION
=
"4.1.0"
fi
fi
PKGURL
=
"
$(
eget
--list
--latest
https://mango3d.io/downloads/
"LycheeSlicer-
$VERSION
.deb"
)
"
PKGURL
=
"
$(
eget
--list
--latest
https://mango3d.io/downloads/
"LycheeSlicer-
$VERSION
.deb"
)
"
...
...
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