[pacman-dev] [PATCH 07/11] paclog-pkglist: streamline usage function
Gordian Edenhofer
gordian.edenhofer at gmail.com
Thu Sep 29 10:23:07 UTC 2016
Signed-off-by: Gordian Edenhofer <gordian.edenhofer at gmail.com>
---
contrib/paclog-pkglist.sh.in | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/contrib/paclog-pkglist.sh.in b/contrib/paclog-pkglist.sh.in
index 847b389..6e9bced 100644
--- a/contrib/paclog-pkglist.sh.in
+++ b/contrib/paclog-pkglist.sh.in
@@ -25,15 +25,17 @@ export TEXTDOMAINDIR='/usr/share/locale'
declare logfile=${1:- at localstatedir@/log/pacman.log}
usage() {
- printf "%s (pacman) v%s\n" "${myname}" "${myver}"
+ printf "%s (pacman) %s\n" "$myname" "$myver"
echo
- echo "Parse a log file into a list of currently installed packages"
+ printf -- "$(gettext "Parse a log file into a list of currently installed packages")\n"
echo
- printf "Usage: %s [path to pacman log]\n" "${myname}"
+ printf -- "$(gettext "Usage: %s [path to pacman log]")\n" "$0"
echo
- printf "Example: %s @localstatedir@/log/pacman.log\n" "${myname}"
+ printf -- "$(gettext "Examples:")"
+ printf -- " %s @localstatedir@/log/pacman.log\n" "$myname"
+ echo
+ printf -- "$(gettext "Defaults to: @localstatedir@/log/pacman.log")\n"
echo
- echo 'Defaults to: @localstatedir@/log/pacman.log'
}
version() {
--
2.10.0
More information about the pacman-dev
mailing list