Commit d70a7c3d authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.16.7

parent 5fe19857
...@@ -3702,20 +3702,27 @@ __epm_play_run() ...@@ -3702,20 +3702,27 @@ __epm_play_run()
docmd bash $bashopt $script "$@" docmd bash $bashopt $script "$@"
} }
epm_play() __epm_play_help()
{ {
local psdir="$(realpath $CONFIGDIR/play.d)"
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
cat <<EOF cat <<EOF
Usage: epm play [options] [<app>]
Options: Options:
APP - install APP <app> - install <app>
--remove APP - remove 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 - list all installed apps
--list-all - list all available apps --list-all - list all available apps
--short - print only names --short (with --list) - list names only"
--update [APP|all] - update APP (or all installed apps) if there is new version --installed <app> - check if the app is installed"
EOF EOF
}
epm_play()
{
local psdir="$(realpath $CONFIGDIR/play.d)"
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
__epm_play_help
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=
......
...@@ -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."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment