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
fcb22c02
Commit
fcb22c02
authored
Jul 27, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: move DISTRVENDOR to set_pm_type, add print package manager to --version
parent
1eac7564
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
epm
bin/epm
+4
-8
epm-sh-functions
bin/epm-sh-functions
+7
-0
No files found.
bin/epm
View file @
fcb22c02
...
...
@@ -48,13 +48,16 @@ $(get_help HELPOPT)
print_version
()
{
echo
"EPM package manager version @VERSION@"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012"
echo
"This program may be freely redistributed under the terms of the GNU GPL"
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"
set_pm_type
verbose
=
quiet
=
non_interactive
=
...
...
@@ -186,13 +189,6 @@ pkg_filenames=$(strip_spaces "$pkg_files $pkg_names")
echover
"pkg_files=
$pkg_files
"
echover
"pkg_names=
$pkg_names
"
# Fill for use: PMTYPE, DISTRNAME, DISTRVERSION, PKGFORMAT, PKGVENDOR, RPMVENDOR
DISTRVENDOR
=
$PROGDIR
/distr_info
[
-n
"
$DISTRNAME
"
]
||
DISTRNAME
=
$(
$DISTRVENDOR
-d
)
[
-n
"
$DISTRVERSION
"
]
||
DISTRVERSION
=
$(
$DISTRVENDOR
-v
)
set_target_pkg_env
set_pm_type
# Run helper for command
if
[
-z
"
$epm_cmd
"
]
;
then
print_version
...
...
bin/epm-sh-functions
View file @
fcb22c02
...
...
@@ -131,6 +131,13 @@ get_help()
set_pm_type
()
{
local
CMD
# Fill for use: PMTYPE, DISTRNAME, DISTRVERSION, PKGFORMAT, PKGVENDOR, RPMVENDOR
DISTRVENDOR
=
$PROGDIR
/distr_info
[
-n
"
$DISTRNAME
"
]
||
DISTRNAME
=
$(
$DISTRVENDOR
-d
)
[
-n
"
$DISTRVERSION
"
]
||
DISTRVERSION
=
$(
$DISTRVENDOR
-v
)
set_target_pkg_env
case
$DISTRNAME
in
ALTLinux|PCLinux
)
CMD
=
"apt-rpm"
...
...
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