gentoo-tools

Some Gentoo helper tools
git clone git://r-36.net/gentoo-tools
Log | Files | Refs | LICENSE

commit 9ed112f0a402bec465490553d94729d7dc3179ed
parent c559864adec3023b2a03ffbf2e81de83b5b8a047
Author: Spenser Truex <web@spensertruex.com>
Date:   Sun,  5 Apr 2020 19:45:24 -0700

Clean up output format

The old way
ehardened profileid
Following profile its are available:Available Profile
[...]

The new way
The following profile ids are available:...
Available profile
 [...]

- Usage looks more typical, has a newline to separate it.
- The ... hints for the user having to wait for the eselect call.
- Advises the user on what commands to possibly run /after/ the ebuilds are done
  filling the screen with text.

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
bin/ehardened | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/bin/ehardened b/bin/ehardened @@ -2,8 +2,8 @@ if [ $# -lt 1 ]; then - printf "usage: %s profileid\n" "$(basename "$0")" >&2 - printf "Following profile ids are available:" >&2 + printf "usage:\n %s profileid\n\n" "$(basename "$0")" >&2 + printf "The following profile ids are available:...\n" >&2 eselect profile list exit 1 fi @@ -27,7 +27,10 @@ source /etc/profile emerge -1 binutils glibc -printf "You might repeat the steps below.\n" emerge -e --keep-going @system emerge -e --keep-going @world +printf "You might repeat the steps below.\n" +printf "emerge -e --keep-going @system\n" +printf "emerge -e --keep-going @world\n" +