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
b1e02a44
Commit
b1e02a44
authored
Feb 01, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.29.1
parent
3bd7fb91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
27 deletions
+54
-27
epm.sh
packed/epm.sh
+37
-20
serv.sh
packed/serv.sh
+17
-7
No files found.
packed/epm.sh
View file @
b1e02a44
...
...
@@ -150,6 +150,15 @@ showcmd()
fi
>
&2
}
echocmd
()
{
set_boldcolor
$GREEN
local
PROMTSIG
=
"
\$
"
is_root
&&
PROMTSIG
=
"#"
echo
-n
"
$PROMTSIG
$*
"
restore_color
}
docmd
()
{
showcmd
"
$*$EXTRA_SHOWDOCMD
"
...
...
@@ -287,8 +296,7 @@ clean_store_output()
epm
()
{
if
[
-n
"
$PROGNAME
"
]
;
then
#|| fatal "Can't use epm call from the piped script"
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
/bin/sh
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
else
epm_main
--inscript
"
$@
"
fi
...
...
@@ -296,14 +304,14 @@ epm()
sudoepm
()
{
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use epm call from the piped script"
sudorun
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use
sudo
epm call from the piped script"
sudorun
/bin/sh
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
fatal
()
{
if
[
-z
"
$TEXTDOMAIN
"
]
;
then
echo
"Error:
$*
"
>
&2
echo
"Error:
$*
(you can discuss the problem in Telegram: https://t.me/useepm)
"
>
&2
fi
exit
1
}
...
...
@@ -510,7 +518,9 @@ estrlist()
eget
()
{
assure_exists wget
# check for both
which curl 2>/dev/null
>
/dev/null
||
assure_exists wget
which wget 2>/dev/null
>
/dev/null
||
assure_exists curl
internal_tools_eget
"
$@
"
}
...
...
@@ -2594,11 +2604,20 @@ __epm_korinf_list() {
__epm_korinf_install
()
{
local
PACKAGE
=
"
$1
"
# skip interactive for install eepm from stdin
if
inputisatty
&&
[
-n
"
$PROGDIR
"
]
&&
[
"
$1
"
!=
"eepm"
]
;
then
[
-n
"
$non_interactive
"
]
||
interactive
=
"--interactive"
fi
local
pkg
local
pkg_urls
=
''
for
pkg
in
$*
;
do
pkg_urls
=
"
$pkg_urls
$(
__epm_korinf_site_mask
"
$pkg
"
)
"
done
# due Error: Can't use epm call from the piped script
#epm install $(__epm_korinf_site_mask "$PACKAGE")
[
-n
"
$non_interactive
"
]
||
interactive
=
"--interactive"
pkg_names
=
''
pkg_files
=
''
pkg_urls
=
"
$(
__epm_korinf_site_mask
"
$PACKAGE
"
)
"
epm_install
pkg_names
=
''
pkg_files
=
''
epm_install
}
epm_epm_install
()
{
...
...
@@ -2618,9 +2637,7 @@ epm_epm_install() {
;;
esac
for
i
in
$pkglist
;
do
__epm_korinf_install
$i
done
__epm_korinf_install
$pkglist
}
# File bin/epm-filelist:
...
...
@@ -11828,9 +11845,9 @@ Examples:
print_version
()
{
echo
"EPM package manager version 3.29.
0
https://wiki.etersoft.ru/Epm"
echo
"EPM package manager version 3.29.
1 Telegram: https://t.me/useepm
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-202
2
"
echo
"Copyright (c) Etersoft 2012-202
3
"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
}
...
...
@@ -11838,7 +11855,7 @@ print_version()
Usage
=
"Usage: epm [options] <command> [package name(s), package files]..."
Descr
=
"epm - EPM package manager"
EPMVERSION
=
3.29.
0
EPMVERSION
=
3.29.
1
verbose
=
$EPM_VERBOSE
quiet
=
nodeps
=
...
...
@@ -12307,12 +12324,12 @@ pkg_filenames=$(strip_spaces "$pkg_files $pkg_names")
# Just printout help if run without args
if
[
-z
"
$epm_cmd
"
]
;
then
print_version
echo
fatstr
=
"Un
known command in
$*
arg(s)"
print_version
>
&2
echo
>
&2
fatstr
=
"Un
recognized command in '
$*
'
arg(s)"
[
-n
"
$*
"
]
||
fatstr
=
"That program needs be running with some command"
echo
"Run
$
$PROGNAME
--help
to get help."
>
&2
echo
"Run
$
epm print info
to get some system and distro info."
>
&2
echo
"Run
$
(
echocmd
"
$PROGNAME
--help"
)
to get help."
>
&2
echo
"Run
$
(
echocmd
"epm print info"
)
to get some system and distro info."
>
&2
fatal
"
$fatstr
."
fi
...
...
packed/serv.sh
View file @
b1e02a44
...
...
@@ -140,6 +140,15 @@ showcmd()
fi
>
&2
}
echocmd
()
{
set_boldcolor
$GREEN
local
PROMTSIG
=
"
\$
"
is_root
&&
PROMTSIG
=
"#"
echo
-n
"
$PROMTSIG
$*
"
restore_color
}
docmd
()
{
showcmd
"
$*$EXTRA_SHOWDOCMD
"
...
...
@@ -277,8 +286,7 @@ clean_store_output()
epm
()
{
if
[
-n
"
$PROGNAME
"
]
;
then
#|| fatal "Can't use epm call from the piped script"
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
/bin/sh
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
else
epm_main
--inscript
"
$@
"
fi
...
...
@@ -286,14 +294,14 @@ epm()
sudoepm
()
{
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use epm call from the piped script"
sudorun
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use
sudo
epm call from the piped script"
sudorun
/bin/sh
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
fatal
()
{
if
[
-z
"
$TEXTDOMAIN
"
]
;
then
echo
"Error:
$*
"
>
&2
echo
"Error:
$*
(you can discuss the problem in Telegram: https://t.me/useepm)
"
>
&2
fi
exit
1
}
...
...
@@ -500,7 +508,9 @@ estrlist()
eget
()
{
assure_exists wget
# check for both
which curl 2>/dev/null
>
/dev/null
||
assure_exists wget
which wget 2>/dev/null
>
/dev/null
||
assure_exists curl
internal_tools_eget
"
$@
"
}
...
...
@@ -2361,7 +2371,7 @@ print_version()
local
on_text
=
"(host system)"
local
virt
=
"
$(
$DISTRVENDOR
-i
)
"
[
"
$virt
"
=
"(unknown)"
]
||
[
"
$virt
"
=
"(host system)"
]
||
on_text
=
"(under
$virt
)"
echo
"Service manager version 3.29.
0
https://wiki.etersoft.ru/Epm"
echo
"Service manager version 3.29.
1
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
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