From 249c5a2c43a9bad8d84d8069b1cc594e09556a44 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 13 Jun 2020 00:00:58 +0300 Subject: [PATCH] kiss-help: New utility --- contrib/kiss-help | 13 +++++++++++++ kiss | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 contrib/kiss-help diff --git a/contrib/kiss-help b/contrib/kiss-help new file mode 100755 index 0000000..649691b --- /dev/null +++ b/contrib/kiss-help @@ -0,0 +1,13 @@ +#!/bin/sh +# Read KISS documentation + +cd "$KISS_ROOT/usr/share/doc/kiss" 2>/dev/null || { + printf 'Documentation is missing from /usr/share/doc/kiss\n' + exit 1 +} + +[ -f "${1:-.}/index.txt" ] && file=./${1:-.}/index.txt +[ -f "${1:-.}.txt" ] && file=./${1:-.}.txt + +"${PAGER:-less}" "$file" + diff --git a/kiss b/kiss index 4f12310..f8ad477 100755 --- a/kiss +++ b/kiss @@ -1408,9 +1408,9 @@ args() { l|list) pkg_list "$@" ;; u|update) pkg_updates ;; s|search) for pkg do pkg_find "$pkg" all; done ;; - v|version) printf '3.0.1\n' ;; + v|version) printf '3.0.2\n' ;; - h|help|-h|--help|'') + -h|--help|'') log 'kiss [a|b|c|d|i|l|r|s|u|v] [pkg]...' log 'alternatives List and swap to alternatives' log 'build Build a package'