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
d63a5430
Commit
d63a5430
authored
Apr 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: implement --print-eepm-env
parent
924d3192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
distr_info
bin/distr_info
+25
-0
No files found.
bin/distr_info
View file @
d63a5430
...
...
@@ -939,6 +939,25 @@ print_help()
echo
"Run without args to print all information."
}
# print code for eval with names for eepm
print_eepm_env
()
{
cat
<<
EOF
export DISTRNAME="
$(
echo
$DISTRIB_ID
)
"
export DISTRVERSION="
$(
echo
"
$DISTRIB_RELEASE
"
)
"
export DISTRARCH="
$(
get_distro_arch
)
"
export DISTRCONTROL="
$(
get_service_manager
)
"
export BASEDISTRNAME=
$(
pkgvendor
)
export PMTYPE="
$(
pkgmanager
)
"
export PKGFORMAT=
$(
pkgtype
)
export PKGVENDOR=
$(
pkgvendor
)
# TODO: remove?
export RPMVENDOR=
$(
pkgvendor
)
EOF
}
if
[
-n
"
$DISTRNAME
"
]
;
then
override_distrib
...
...
@@ -1053,8 +1072,14 @@ case "$1" in
-e
)
print_name_version
;;
--print-eepm-env
)
print_eepm_env
exit
0
;;
-
*
)
echo
"Unsupported option
$1
"
>
&2
# print empty line in any case
echo
exit
1
;;
esac
...
...
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