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() ...@@ -60,6 +60,7 @@ print_version()
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."
} }
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"
...@@ -78,6 +79,7 @@ pkg_files= ...@@ -78,6 +79,7 @@ pkg_files=
pkg_names= pkg_names=
progname="${0##*/}" progname="${0##*/}"
case $progname in case $progname in
epmi) epmi)
epm_cmd=install epm_cmd=install
...@@ -277,7 +279,7 @@ pkg_filenames=$(strip_spaces "$pkg_files $pkg_names") ...@@ -277,7 +279,7 @@ pkg_filenames=$(strip_spaces "$pkg_files $pkg_names")
if [ -z "$epm_cmd" ] ; then if [ -z "$epm_cmd" ] ; then
print_version print_version
echo echo
fatal "Run $ epm --help for get help" fatal "Run $ $progname --help for get help"
fi fi
# Run helper for command # Run helper for command
......
...@@ -125,7 +125,9 @@ print_version() ...@@ -125,7 +125,9 @@ print_version()
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."
} }
Usage="Usage: serv [options] [<service>] [<command>] [params]..." progname="${0##*/}"
Usage="Usage: $progname [options] [<service>] [<command>] [params]..."
Descr="serv - Service manager" Descr="serv - Service manager"
set_service_type set_service_type
...@@ -138,6 +140,7 @@ serv_cmd= ...@@ -138,6 +140,7 @@ serv_cmd=
service_name= service_name=
params= params=
check_command() check_command()
{ {
# do not override command # do not override command
...@@ -227,7 +230,7 @@ echover "command: $serv_cmd" ...@@ -227,7 +230,7 @@ echover "command: $serv_cmd"
if [ "$serv_cmd" != "list" ] && [ "$serv_cmd" != "list_all" ] && [ -z "$service_name" ] ; then if [ "$serv_cmd" != "list" ] && [ "$serv_cmd" != "list_all" ] && [ -z "$service_name" ] ; then
print_version print_version
echo echo
fatal "Run $ serv --help for get help" fatal "Run $ $progname --help for get help"
fi fi
if [ -z "$serv_cmd" ] ; then if [ -z "$serv_cmd" ] ; then
......
...@@ -51,6 +51,7 @@ install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/se ...@@ -51,6 +51,7 @@ install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/se
%_bindir/eepm %_bindir/eepm
%_bindir/upm %_bindir/upm
%_bindir/serv %_bindir/serv
%_bindir/cerv
%_bindir/distr_info %_bindir/distr_info
%_datadir/%name/ %_datadir/%name/
%_sysconfdir/bash_completion.d/serv %_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