Commit e0c362cb authored by Boria138's avatar Boria138 Committed by Vitaly Lipatov

Replace all cat <<EOF to message

parent df1f51ea
......@@ -939,7 +939,7 @@ local orig=''
[ -n "$BUILD_ID" ] && [ "$DISTRIB_FULL_RELEASE" != "$BUILD_ID" ] && orig=" (orig. $BUILD_ID)"
local EV=''
[ -n "$EPMVERSION" ] && EV="(EPM version $EPMVERSION) "
cat <<EOF
message '
distro_info v$PROGVERSION $EV: Copyright © 2007-2024 Etersoft
Pretty name (--pretty): $(print_pretty_name)
......@@ -956,7 +956,7 @@ distro_info v$PROGVERSION $EV: Copyright © 2007-2024 Etersoft
Bug report URL (--bug-report-url): $(print_bug_report_url)
(run with -h to get help)
EOF
'
}
print_help()
......@@ -995,7 +995,7 @@ print_help()
# print code for eval with names for eepm
print_eepm_env()
{
cat <<EOF
message '
# -d | --base-distro-name
DISTRNAME="$(echo $DISTRIB_ID)"
# -v | --base-version
......@@ -1022,7 +1022,7 @@ DISTRMEMORY="$(get_memory_size)"
PKGVENDOR=$(pkgvendor)
RPMVENDOR=$(pkgvendor)
EOF
'
}
......
......@@ -672,7 +672,7 @@ pkg_filenames=$(strip_spaces "$pkg_files $pkg_names")
print_short_help()
{
cat <<EOF
message '
Popular commands:
epm search <name> - search package by name
......@@ -683,7 +683,7 @@ Popular commands:
epm qf (<command>|<path>) - print what package contains this command (file)
epm sf <name> - search for the name in all files of all packages
epm cl <package name> - print changelog for the package
EOF
'
}
# Just printout help if run without args
......
......@@ -156,7 +156,7 @@ __epm_addrepo_altlinux_url()
__epm_addrepo_altlinux_help()
{
#sudocmd apt-repo $dryrun add branch
cat <<EOF
message '
epm repo add - add branch repo. Use follow params:
basealt - for BaseALT repo
......@@ -179,7 +179,7 @@ Examples:
# epm repo add "rpm http://somesite/pub/product x86_64 addon
# epm repo add /var/ftp/pub/altlinux/p10
EOF
'
return
}
......
......@@ -208,7 +208,7 @@ epm_autoremove_print_help()
echo "run 'epm autoremove' to use apt-get autoremove"
echo "or run 'epm autoremove --direct [group1] [group2] ...' to use epm implementation"
echo "Default groups: $epm_autoremove_default_groups"
cat <<EOF
message '
Supported package groups:
libs - unused libraries
libs-devel - unused -devel packages
......@@ -224,7 +224,7 @@ Supported package groups:
Use
--auto|--assumeyes|--non-interactive for non interactive mode
EOF
'
}
......
......@@ -107,7 +107,7 @@ epm_epm_install_help()
{
echo "epm ei [URL] [packages] - install packages from EPM based Korinf repository"
get_help HELPCMD $SHAREDIR/epm-epm_install
cat <<EOF
message '
Default Korinf repository: $EPM_KORINF_REPO_URL
......@@ -116,7 +116,7 @@ Examples:
epm ei <package1> [<package2>...] - install package(s) from default Korinf repo
epm http://someurl.ru <package> - install package(s) from a repo defined by URL
epm --list <package mask> - list available packages by mask
EOF
'
}
......
......@@ -20,14 +20,14 @@
epm_full_upgrade_help()
{
get_help HELPCMD $SHAREDIR/epm-full_upgrade
cat <<EOF
message '
You can run with --interactive if you can skip some steps interactively.
Also you can comment out full_upgrade parts in /etc/eepm/eepm.conf config.
Examples:
epm full-upgrade [--auto]
epm full-upgrade [--interactive]
epm full-upgrade --no-flatpack
EOF
'
}
......
......@@ -101,11 +101,11 @@ epm_history_help()
{
echo "package management history"
get_help HELPCMD $SHAREDIR/epm-history
cat <<EOF
message '
Examples:
epm history
epm history --removed
EOF
'
}
......
......@@ -19,7 +19,7 @@
epm_list_help()
{
cat <<EOF
message '
epm list - list packages
Usage: epm list [options] [package]
......@@ -27,7 +27,7 @@ Options:
--available list only available packages
--installed list only installed packages
--upgradable list only upgradable packages
EOF
'
# --all list all packages (default)
}
......
......@@ -321,11 +321,11 @@ epm_mark_help()
{
echo "mark is the interface for marking packages"
get_help HELPCMD $SHAREDIR/epm-mark
cat <<EOF
message '
Examples:
epm mark hold mc
epm manual mc
EOF
'
}
epm_mark()
......
......@@ -118,7 +118,7 @@ __epm_pack()
epm_pack_help()
{
cat <<EOF
message '
epm pack - create rpm package from files
Usage: epm pack [options] <packname> <tar|url|dir> [version]
Options:
......@@ -130,7 +130,7 @@ Options:
--repack - force repack ever if returned package can be installed without repack
--download-only - save pack result and exit
--save-only - save repacked packages and exit (this is default behaviour)
EOF
'
}
......
......@@ -23,12 +23,12 @@ __epm_packages_help()
{
echo "package management list"
get_help HELPCMD $SHAREDIR/epm-packages
cat <<EOF
message '
Examples:
epm packages --sort
epm packages --sort=size
epm packages --last
EOF
'
}
__epm_packages_sort()
......
......@@ -242,7 +242,7 @@ __epm_play_list()
epm_play_help()
{
cat <<EOF
message '
Usage: epm play [options] [<app>]
Options:
<app> - install <app>
......@@ -261,7 +261,7 @@ Examples:
epm play telegram = beta
epm play telegram = 4.7.1
epm play --update all
EOF
'
}
__epm_is_shell_script()
......
......@@ -25,11 +25,11 @@ epm_prescription()
local psdir="$CONFIGDIR/prescription.d"
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
cat <<EOF
message '
Options:
<receipt> - run <receipt>
--list-all - list all available receipts
EOF
'
exit
fi
......
......@@ -322,7 +322,7 @@ construct_name()
epm_print_help()
{
cat <<EOF
message '
Examples:
epm print info [args] print system and distro info (via distro_info command)
epm print name [from filename|for package] NN print only name of package name or package file
......@@ -340,7 +340,7 @@ cat <<EOF
epm print compare [package] version N1 N2 compare (package) versions and print -1 (N1 < N2), 0 (N1 == N2), 1 (N1 > N2)
epm print enough [package version] package version returns true if the package with the version or above is installed
epm print constructname <name> <version> [arch] [pkgtype] [delimiter1] [delimiter2] print distro dependend package filename from args name version arch pkgtype
EOF
'
}
epm_print()
......
......@@ -22,7 +22,7 @@ load_helper epm-sh-altlinux
epm_repo_help()
{
get_help HELPCMD $SHAREDIR/epm-repo
cat <<EOF
message '
Examples:
epm repo set p9 - clean all sources and add default repo for p9 branch
......@@ -31,7 +31,7 @@ Examples:
epm repo add autoimports - add autoimports (from Fedora) repo
epm repo change yandex - change only base url part to mirror.yandex.ru server
epm repo list - list current repos
EOF
'
}
......
......@@ -208,7 +208,7 @@ epm_status_thirdparty()
epm_status_help()
{
cat <<EOF
message '
epm status - check status of the package and return result via exit code
Usage: epm status [options] <package> [version]
......@@ -218,11 +218,10 @@ Options:
--installable check if <package> can be installed from the repo
--original check if <package> is from distro repo
--certified check if <package> is certified that it can be installed without repacking
--thirdparty check if <package> from a third-party source (didn't packed for this distro)
--thirdparty check if <package> from a third-party source (didnt packed for this distro)
--repacked check if <package> was repacked with epm repack
--validate check if <package> is accessible (we can get a fields from it)
EOF
'
}
epm_status()
......
......@@ -22,12 +22,12 @@ epm_tool_help()
echo "Tools embedded in epm:"
get_help HELPCMD $SHAREDIR/epm-tool
cat <<EOF
message '
Examples:
epm tool eget -U http://ya.ru
epm tool estrlist union a b a c
epm tool erc archive.zip
EOF
'
}
epm_tool()
......
......@@ -50,10 +50,10 @@ load_helper epm-sh-functions
esu_print_help()
{
cat <<EOF
message '
esu - get root shell or run a command in root shell
Usage: esu [-c] [<command>]
EOF
'
}
......
......@@ -359,7 +359,7 @@ set_quiet()
eget_help()
{
cat <<EOF
message '
eget - wget like downloader wrapper with wildcard support in filename part of URL
Usage: eget [options] http://somesite.ru/dir/na*.log
......@@ -407,10 +407,9 @@ Examples:
$ eget -O myname ipfs://QmVRUjnsnxHWkjq91KreCpUk4D9oZEbMwNQ3rzdjwND5dR
$ eget --list http://ftp.somesite.ru/package-*.tar
$ eget --check-url http://ftp.somesite.ru/test
$ eget --list http://download.somesite.ru 'package-*.tar.xz'
$ eget --list --latest https://github.com/telegramdesktop/tdesktop/releases 'tsetup.*.tar.xz'
EOF
$ eget --list http://download.somesite.ru "package-*.tar.xz"
$ eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.*.tar.xz"
'
}
......
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