Commit 20c91b49 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add cerv alias for serv support

parent a49cbdce
serv
\ No newline at end of file
......@@ -60,6 +60,7 @@ print_version()
echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
}
Usage="Usage: epm [options] <command> [package name(s), package files]..."
Descr="epm - EPM package manager"
......@@ -78,6 +79,7 @@ pkg_files=
pkg_names=
progname="${0##*/}"
case $progname in
epmi)
epm_cmd=install
......@@ -277,7 +279,7 @@ pkg_filenames=$(strip_spaces "$pkg_files $pkg_names")
if [ -z "$epm_cmd" ] ; then
print_version
echo
fatal "Run $ epm --help for get help"
fatal "Run $ $progname --help for get help"
fi
# Run helper for command
......
......@@ -125,7 +125,9 @@ print_version()
echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
}
Usage="Usage: serv [options] [<service>] [<command>] [params]..."
progname="${0##*/}"
Usage="Usage: $progname [options] [<service>] [<command>] [params]..."
Descr="serv - Service manager"
set_service_type
......@@ -138,6 +140,7 @@ serv_cmd=
service_name=
params=
check_command()
{
# do not override command
......@@ -227,7 +230,7 @@ echover "command: $serv_cmd"
if [ "$serv_cmd" != "list" ] && [ "$serv_cmd" != "list_all" ] && [ -z "$service_name" ] ; then
print_version
echo
fatal "Run $ serv --help for get help"
fatal "Run $ $progname --help for get help"
fi
if [ -z "$serv_cmd" ] ; then
......
......@@ -51,6 +51,7 @@ install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/se
%_bindir/eepm
%_bindir/upm
%_bindir/serv
%_bindir/cerv
%_bindir/distr_info
%_datadir/%name/
%_sysconfdir/bash_completion.d/serv
......
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