Commit 6bb238ff authored by Danil Mikhailov's avatar Danil Mikhailov

add remove search -qf

parent ac30006e
...@@ -51,6 +51,17 @@ case $progname in ...@@ -51,6 +51,17 @@ case $progname in
epmi) epmi)
epm_cmd=install epm_cmd=install
;; ;;
epme)
epm_cmd=remove
;;
epms)
epm_cmd=search
;;
epmqf)
epm_cmd=query_file
;;
epm)
;;
*) *)
fatal "Unknown command: $progname" fatal "Unknown command: $progname"
;; ;;
...@@ -67,6 +78,22 @@ for opt in "$@" ; do ...@@ -67,6 +78,22 @@ for opt in "$@" ; do
-i|install) -i|install)
epm_cmd=install epm_cmd=install
;; ;;
-e|remove)
epm_cmd=remove
;;
-s|search)
epm_cmd=search
;;
-q)
epm_cmd=checkpkg
;;
-qf)
epm_cmd=query_file
;;
-qa|list|packages)
#TODO file packages
epm_cmd=packages
;;
*) *)
if [ -f "$opt" ] ; then if [ -f "$opt" ] ; then
pkg_files="$pkgfiles $opt" pkg_files="$pkgfiles $opt"
...@@ -96,5 +123,5 @@ epm_cmd_file=$(dirname $0)/epm-$epm_cmd ...@@ -96,5 +123,5 @@ epm_cmd_file=$(dirname $0)/epm-$epm_cmd
[ -r "$epm_cmd_file" ] || fatal "Have no $epm_cmd_file command file" [ -r "$epm_cmd_file" ] || fatal "Have no $epm_cmd_file command file"
. $epm_cmd_file . $epm_cmd_file
eval epm_$epm_cmd epm_$epm_cmd
epm
\ No newline at end of file
epm
\ No newline at end of file
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