Commit 88272a83 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add epm moo

parent e3733b62
......@@ -374,6 +374,10 @@ check_command()
repack) # HELPCMD: repack rpm to local compatibility
epm_cmd=repack
;;
moo)
epm_cmd=moo
direct_args=1
;;
prescription|recipe) # HELPCMD: run prescription (a script to achieving the goal), run without args to get list
epm_cmd=prescription
direct_args=1
......
#!/bin/sh
#
# Copyright (C) 2023 Etersoft
# Copyright (C) 2023 Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
epm_moo()
{
local figlet cowsay docmd
epm assure figlet && figlet="figlet"
epm assure cowsay cowsay-soft && cowsay="cowsay"
[ -n "$verbose" ] && docmd="docmd"
[ -n "$figlet" ] && $docmd $figlet "EPM"
[ -n "$cowsay" ] && $docmd $cowsay "EPM from Etersoft"
[ -n "$figlet" ] && $docmd $figlet "Etersoft"
}
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