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
Vladislav
eepm
Commits
d70a7c3d
Commit
d70a7c3d
authored
Mar 31, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.16.7
parent
5fe19857
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
23 deletions
+28
-23
epm.sh
packed/epm.sh
+27
-22
serv.sh
packed/serv.sh
+1
-1
No files found.
packed/epm.sh
View file @
d70a7c3d
...
@@ -3702,20 +3702,27 @@ __epm_play_run()
...
@@ -3702,20 +3702,27 @@ __epm_play_run()
docmd bash
$bashopt
$script
"
$@
"
docmd bash
$bashopt
$script
"
$@
"
}
}
__epm_play_help
()
{
cat
<<
EOF
Usage: epm play [options] [<app>]
Options:
<app> - install <app>
--remove <app> - uninstall <app>
--update [<app>|all] - update <app> (or all installed apps) if there is new version
--list - list all installed apps
--list-all - list all available apps
--short (with --list) - list names only"
--installed <app> - check if the app is installed"
EOF
}
epm_play
()
epm_play
()
{
{
local
psdir
=
"
$(
realpath
$CONFIGDIR
/play.d
)
"
local
psdir
=
"
$(
realpath
$CONFIGDIR
/play.d
)
"
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
cat
<<
EOF
__epm_play_help
Options:
APP - install APP
--remove APP - remove APP
--list - list all installed apps
--list-all - list all available apps
--short - print only names
--update [APP|all] - update APP (or all installed apps) if there is new version
EOF
exit
exit
fi
fi
...
@@ -3772,11 +3779,12 @@ if [ "$1" = "--list" ] ; then
...
@@ -3772,11 +3779,12 @@ if [ "$1" = "--list" ] ; then
done
done
exit
exit
fi
fi
echo
"Installed:"
[
-n
"
$quiet
"
]
||
echo
"Installed:"
for
i
in
$(
__list_installed_app
)
;
do
for
i
in
$(
__list_installed_app
)
;
do
local
desc
=
"
$(
__get_app_description
$psdir
/
$i
.sh
)
"
local
desc
=
"
$(
__get_app_description
$psdir
/
$i
.sh
)
"
[
-n
"
$desc
"
]
||
continue
[
-n
"
$desc
"
]
||
continue
printf
" %-20s - %s
\n
"
"
$i
"
"
$desc
"
[
-n
"
$quiet
"
]
||
echo
-n
" "
printf
"%-20s - %s
\n
"
"
$i
"
"
$desc
"
done
done
exit
exit
fi
fi
...
@@ -3794,23 +3802,20 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
...
@@ -3794,23 +3802,20 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
done
done
exit
exit
fi
fi
echo
"Run with a name of a play script to run:"
[
-n
"
$quiet
"
]
||
echo
"Run with a name of a play script to run:"
for
i
in
$psdir
/
*
.sh
;
do
for
i
in
$psdir
/
*
.sh
;
do
local
desc
=
"
$(
__get_app_description
$i
)
"
local
desc
=
"
$(
__get_app_description
$i
)
"
[
-n
"
$desc
"
]
||
continue
[
-n
"
$desc
"
]
||
continue
local
name
=
$(
basename
$i
.sh
)
local
name
=
$(
basename
$i
.sh
)
[
-n
"
$IGNOREi586
"
]
&&
rhas
"
$name
"
"^i586-"
&&
continue
[
-n
"
$IGNOREi586
"
]
&&
rhas
"
$name
"
"^i586-"
&&
continue
rhas
"
$name
"
"^common"
&&
continue
rhas
"
$name
"
"^common"
&&
continue
printf
" %-20s - %s
\n
"
"
$name
"
"
$desc
"
[
-n
"
$quiet
"
]
||
echo
-n
" "
printf
"%-20s - %s
\n
"
"
$name
"
"
$desc
"
done
done
[
-n
"
$quiet
"
]
||
[
-n
"
$*
"
]
&&
exit
echo
echo
echo
"run epm play"
#echo "Run epm play --help for help"
echo
" --list - list installed apps"
__epm_play_help
echo
" --list-all (default) - list all apps"
echo
" --remove <app> - remove <app>"
echo
" --update <app>|all - update <app> or all installed apps"
echo
" --installed <app> - check if the app is installed"
echo
" --short (with --list) - list names only"
exit
exit
fi
fi
...
@@ -10390,7 +10395,7 @@ Examples:
...
@@ -10390,7 +10395,7 @@ Examples:
print_version
()
print_version
()
{
{
echo
"EPM package manager version 3.16.
6
https://wiki.etersoft.ru/Epm"
echo
"EPM package manager version 3.16.
7
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Running on
$(
$DISTRVENDOR
-e
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
@@ -10400,7 +10405,7 @@ print_version()
...
@@ -10400,7 +10405,7 @@ print_version()
Usage
=
"Usage: epm [options] <command> [package name(s), package files]..."
Usage
=
"Usage: epm [options] <command> [package name(s), package files]..."
Descr
=
"epm - EPM package manager"
Descr
=
"epm - EPM package manager"
EPMVERSION
=
3.16.
6
EPMVERSION
=
3.16.
7
verbose
=
$EPM_VERBOSE
verbose
=
$EPM_VERBOSE
quiet
=
quiet
=
nodeps
=
nodeps
=
...
...
packed/serv.sh
View file @
d70a7c3d
...
@@ -2994,7 +2994,7 @@ print_version()
...
@@ -2994,7 +2994,7 @@ print_version()
local
on_text
=
"(host system)"
local
on_text
=
"(host system)"
local
virt
=
"
$(
$DISTRVENDOR
-i
)
"
local
virt
=
"
$(
$DISTRVENDOR
-i
)
"
[
"
$virt
"
=
"(unknown)"
]
||
[
"
$virt
"
=
"(host system)"
]
||
on_text
=
"(under
$virt
)"
[
"
$virt
"
=
"(unknown)"
]
||
[
"
$virt
"
=
"(host system)"
]
||
on_text
=
"(under
$virt
)"
echo
"Service manager version 3.16.
6
https://wiki.etersoft.ru/Epm"
echo
"Service manager version 3.16.
7
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
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