Commit 39f809e9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: add commanes, add DISTRMEMORY

parent e789be4c
......@@ -903,7 +903,7 @@ print_help()
echo "Usage: distro_info [options] [SystemName/Version]"
echo "Options:"
echo " -h | --help - this help"
echo " -a - print hardware architecture (--distro-arch for distro depended name)"
echo " -a - print hardware architecture (use --distro-arch for distro depended arch name)"
echo " -b - print size of arch bit (32/64)"
echo " -c - print number of CPU cores"
echo " -i - print virtualization type"
......@@ -915,8 +915,8 @@ print_help()
echo " -d|--base-distro-name - print distro id (short distro name)"
echo " -e - print full name of distro with version"
echo " -o | --os-name - print base OS name"
echo " -p | --package-type - print type of the packaging system"
echo " -g - print name of the packaging system"
echo " -p | --package-type - print type of the packaging system (f.i., apt-dpkg)"
echo " -g - print name of the packaging system (f.i., deb)"
echo " -s|-n|--vendor-name - print name of the distro family (vendor name) (ubuntu for all Ubuntu family, alt for all ALT family) (see _vendor macros in rpm)"
echo " --pretty|--pretty-name - print pretty distro name"
echo " -v | --base-version - print version of the distro"
......@@ -934,16 +934,28 @@ print_help()
print_eepm_env()
{
cat <<EOF
# -d | --base-distro-name
export DISTRNAME="$(echo $DISTRIB_ID)"
# -v | --base-version
export DISTRVERSION="$(echo "$DISTRIB_RELEASE")"
# -a
export DISTRARCH="$(get_distro_arch)"
# -y | --service-manager
export DISTRCONTROL="$(get_service_manager)"
# -s | --vendor-name
export BASEDISTRNAME=$(pkgvendor)
# --repo-name
export DISTRREPONAME=$(print_repo_name)
# -g
export PMTYPE="$(pkgmanager)"
# -p | --package-type
export PKGFORMAT=$(pkgtype)
export PKGVENDOR=$(pkgvendor)
# -m
export DISTRMEMORY="$(get_memory_size)"
# TODO: remove?
export PKGVENDOR=$(pkgvendor)
export RPMVENDOR=$(pkgvendor)
EOF
......
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