Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
ce2146f4
Commit
ce2146f4
authored
Jul 26, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: fill epm_cmd only one time
parent
9c1b57cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
20 deletions
+33
-20
epm
bin/epm
+33
-20
No files found.
bin/epm
View file @
ce2146f4
...
...
@@ -84,26 +84,12 @@ case $progname in
;;
esac
for
opt
in
"
$@
"
;
do
case
$opt
in
-h
|
--help
|
help
)
# HELPOPT: this help
phelp
;
exit
0
;;
-v
|
--version
)
# HELPOPT: print version
print_version
;
exit
0
;;
--verbose
)
# HELPOPT: verbose mode
verbose
=
1
;;
--skip-installed
)
# HELPOPT: skip already install during install
skip_installed
=
1
;;
--quiet
)
# HELPOPT: quiet mode (do not print commands before exec)
quiet
=
1
;;
--auto
)
# HELPOPT: non interactive mode
non_interactive
=
1
;;
check_command
()
{
# do not override command
[
-z
"
$epm_cmd
"
]
||
return
case
$1
in
-i
|
install
|
add
)
# HELPCMD: install package(s) from remote repositories or from local file
epm_cmd
=
install
;;
...
...
@@ -150,6 +136,33 @@ for opt in "$@" ; do
epm_cmd
=
simulate
;;
*
)
return
1
esac
return
0
}
for
opt
in
"
$@
"
;
do
check_command
$opt
&&
continue
case
$opt
in
-h
|
--help
|
help
)
# HELPOPT: this help
phelp
;
exit
0
;;
-v
|
--version
)
# HELPOPT: print version
print_version
;
exit
0
;;
--verbose
)
# HELPOPT: verbose mode
verbose
=
1
;;
--skip-installed
)
# HELPOPT: skip already install during install
skip_installed
=
1
;;
--quiet
)
# HELPOPT: quiet mode (do not print commands before exec)
quiet
=
1
;;
--auto
)
# HELPOPT: non interactive mode
non_interactive
=
1
;;
*
)
if
[
-f
"
$opt
"
]
;
then
pkg_files
=
"
$pkg_files
$opt
"
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment