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
aa499218
Commit
aa499218
authored
Mar 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm ei: add help, rewrite parsing
parent
a9f5d2a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
13 deletions
+28
-13
epm-epm_install
bin/epm-epm_install
+28
-13
No files found.
bin/epm-epm_install
View file @
aa499218
...
...
@@ -61,26 +61,41 @@ __epm_korinf_install() {
pkg_names
=
''
pkg_files
=
''
epm_install
}
epm_epm_install
()
{
local
i
local
pkglist
=
"
$*
"
epm_epm_install_help
()
{
echo
"epm ei [packages] - install packages from EPM based Korinf repository"
get_help HELPCMD
$SHAREDIR
/epm-epm_install
cat
<<
EOF
# install epm by default
if
[
-z
"
$pkglist
"
]
||
[
"
$pkglist
"
=
"epm"
]
||
[
"
$pkglist
"
=
"eepm"
]
;
then
# if [ "$($DISTRVENDOR -s)" = "alt" ] ; then
# pkglist="distro_info eepm"
# else
pkglist
=
"eepm"
# fi
Examples:
epm ei [epm|eepm] - install latest eepm (default action)
epm <package1> [<package2>...] - install package(s) from default Korinf repo
epm http://someurl.ru <package> - install package(s) from the URL
epm --list <package mask> - list available packages by mask
EOF
}
epm_epm_install
()
{
fi
case
"
$pkglist
"
in
--list
*
)
case
"
$1
"
in
""
|
epm|eepm
)
# install epm by default
__epm_korinf_install
"eepm"
return
;;
-h
|
--help
)
# HELPCMD: help
epm_epm_install_help
return
;;
--list
)
# HELPCMD: list only packages
shift
__epm_korinf_list
"
$1
"
return
;;
esac
__epm_korinf_install
$pkglist
__epm_korinf_install
"
$@
"
}
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