Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
8258f32a
Commit
8258f32a
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround for echo -e
parent
ecf40bee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
functions.sh
etercifs/functions.sh
+9
-4
source.sh
etercifs/source.sh
+2
-2
No files found.
etercifs/functions.sh
View file @
8258f32a
...
...
@@ -53,7 +53,14 @@ check_for_openvz()
sort_dn
()
{
# sort -V
sort
-t
'.'
-k
1,1
-k
2,2
-k
3,3
-k
4,4
-g
sort
-t
'.'
-k
1,1
-k
2,2
-k
3,3
-k
4,4
-g
"
$@
"
}
# build fake source table from source list
fake_source_versions
()
{
echo
"[Generic]"
list_source_versions |
grep
'^[0-9]'
| sort_dn
-r
}
detect_etercifs_sources
()
...
...
@@ -69,9 +76,7 @@ detect_etercifs_sources()
# generic kernels
if
[
-z
"
$KERNEL_STRING
"
]
||
[
"
$KERNEL_STRING
"
=
"fixme"
]
;
then
# build fake source table from source list
KERNEL_STRING
=
$(
echo
-e
"[Generic]
\n
$(
list_source_versions |
grep
'^[0-9]'
| sort_dn
)
"
| ./source.sh
"Generic"
"
$KERNELVERSION
"
)
# hack for mc colorifer: "
KERNEL_STRING
=
$(
fake_source_versions | ./source.sh
"Generic"
"
$KERNELVERSION
"
)
fi
if
[
-n
"
$KERNEL_STRING
"
]
;
then
...
...
etercifs/source.sh
View file @
8258f32a
...
...
@@ -13,12 +13,12 @@ KERNELVERSION="$2"
sort_dn
()
{
# sort -V
sort
-t
'.'
-k
1,1
-k
2,2
-k
3,3
-k
4,4
-g
sort
-t
'.'
-k
1,1
-k
2,2
-k
3,3
-k
4,4
-g
"
$@
"
}
# <=
verlte
()
{
[
"
$1
"
=
"
`
echo
-e
"
$1
\n
$2
"
| sort_dn |
head
-n1
`
"
]
[
"
$1
"
=
"
`
(
echo
"
$1
"
;
echo
"
$2
"
;
)
| sort_dn |
head
-n1
`
"
]
}
# <
...
...
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