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
etersoft
eepm
Commits
71e0fd7e
Commit
71e0fd7e
authored
Jul 19, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add print version
parent
5bc3c416
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
epm
bin/epm
+18
-2
epm.spec
epm.spec
+3
-0
No files found.
bin/epm
View file @
71e0fd7e
...
...
@@ -62,6 +62,13 @@ $Usage
"
}
print_version
()
{
echo
"EPM package manager version @VERSION@"
echo
"Copyright (c) Etersoft 2012"
echo
"This program may be freely redistributed under the terms of the GNU GPL"
}
Usage
=
"Usage: epm [options] <command> [package name(s), package files]..."
Descr
=
"epm - EPM package manager"
...
...
@@ -97,7 +104,11 @@ for opt in "$@" ; do
-h
|
--help
|
help
)
phelp
;
exit
0
;;
-v
|
--verbose
)
-v
|
--version
)
print_version
exit
;;
--verbose
)
verbose
=
1
;;
--auto
)
...
...
@@ -162,6 +173,11 @@ set_target_pkg_env
set_pm_type
# Run helper for command
[
-n
"
$epm_cmd
"
]
||
fatal
"Run without any command"
if
[
-z
"
$epm_cmd
"
]
;
then
print_version
echo
fatal
"Run
$
epm --help for get help"
fi
load_helper epm-
$epm_cmd
epm_
$epm_cmd
||
fatal
""
epm.spec
View file @
71e0fd7e
...
...
@@ -23,6 +23,9 @@ universal interface to any package manager.
%prep
%setup
%build
%__subst "s|@VERSION@|%version-%release|g" bin/epm
%install
# install to datadir and so on
%makeinstall
...
...
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