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
Nurlan
eepm
Commits
9a94cb45
Commit
9a94cb45
authored
Nov 19, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ei/ik: add support for --list [mask], install via eget
parent
89894e9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
epm-epm_install
bin/epm-epm_install
+26
-7
No files found.
bin/epm-epm_install
View file @
9a94cb45
...
@@ -20,16 +20,27 @@
...
@@ -20,16 +20,27 @@
load_helper epm-install
load_helper epm-install
__epm_korinf_install
(){
__epm_korinf_site
()
{
local
PACKAGE
=
"
$1
"
local
archprefix
=
""
local
archprefix
=
""
[
"
$(
$DISTRVENDOR
-b
)
"
=
"64"
]
&&
archprefix
=
"x86_64/"
[
"
$(
$DISTRVENDOR
-b
)
"
=
"64"
]
&&
archprefix
=
"x86_64/"
local
etersoft_updates_site
=
"http://updates.etersoft.ru/pub/Korinf/
$archprefix
$(
$DISTRVENDOR
-e
)
"
local
aftername
=
"-"
# FIXME: some way to get latest package
[
"
$(
$DISTRVENDOR
-p
)
"
=
"deb"
]
&&
aftername
=
"_"
assure_exists wget
echo
"http://updates.etersoft.ru/pub/Korinf/
$archprefix
$(
$DISTRVENDOR
-e
)
"
# TODO: use eget or file with last versions?
}
local
download_link
=
$etersoft_updates_site
/
$(
wget
-qO-
$etersoft_updates_site
/ |
grep
-m1
-Eo
"
$PACKAGE
[^
\"
]+
\.
$(
$DISTRVENDOR
-p
)
"
|
tail
-n1
)
#"
__epm_korinf_list
()
{
[
"
$1
"
=
"--list"
]
&&
shift
local
MASK
=
"
$1
"
showcmd eget
--list
"
$(
__epm_korinf_site
)
/
$MASK
*.
$(
$DISTRVENDOR
-p
)
"
eget
--list
"
$(
__epm_korinf_site
)
/
$MASK
*.
$(
$DISTRVENDOR
-p
)
"
|
sort
}
__epm_korinf_install
(){
local
PACKAGE
=
"
$1
"
# FIXME: some way to get latest package
local
download_link
=
$(
__epm_korinf_site
)
/
$(
__epm_korinf_list
$PACKAGE$aftername
|
tail
-n1
)
#info "Install $download_link ..."
pkg_names
=
''
pkg_files
=
''
pkg_urls
=
"
$download_link
"
epm_install
pkg_names
=
''
pkg_files
=
''
pkg_urls
=
"
$download_link
"
epm_install
}
}
...
@@ -38,6 +49,14 @@ epm_epm_install(){
...
@@ -38,6 +49,14 @@ epm_epm_install(){
local
pkglist
=
"
$pkg_filenames
"
local
pkglist
=
"
$pkg_filenames
"
# install epm by default
# install epm by default
[
-n
"
$pkglist
"
]
||
pkglist
=
"eepm"
[
-n
"
$pkglist
"
]
||
pkglist
=
"eepm"
case
"
$pkglist
"
in
--list
*
)
__epm_korinf_list
$pkglist
return
;;
esac
for
i
in
$pkglist
;
do
for
i
in
$pkglist
;
do
__epm_korinf_install
$i
__epm_korinf_install
$i
done
done
...
...
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