mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-26 09:58:14 +01:00
use slakmagiks tweak for the show_readme function. It now works much better, thanks!
This commit is contained in:
parent
2faa0de4e3
commit
6a59d6425f
1 changed files with 6 additions and 13 deletions
|
@ -364,19 +364,12 @@ SRCNAME=${DOWNLOAD##*/}
|
|||
|
||||
show_readme () {
|
||||
# Show the package's text files.
|
||||
# I am still not happy with how this works and am trying to think
|
||||
# of a better way to have these 4 docs available for viewing from the
|
||||
# cli. Maybe have -s just return the readme, as the result of a
|
||||
# search, and maybe have another option like -v to view all 4 docs?
|
||||
# Also, maybe have a way for the user to choose which of the 4 docs he
|
||||
# wants to view? Or have a menu listing the 4 docs? Undecided.
|
||||
SBODOCS="README $PKGNAME.SlackBuild $PKGNAME.info slack-desc"
|
||||
for i in $SBODOCS; do
|
||||
echo
|
||||
echo "Viewing "$i":"
|
||||
${PAGER:-more} $PKGPATH/$i
|
||||
read # This was added because README was scrolling past too quickly
|
||||
done
|
||||
# Thanks to slakmagik, this works much better. I may still look at
|
||||
# other ways to do this. Perhaps have a way for the user to choose
|
||||
# which of the 4 docs he wants to view? Or have a menu listing
|
||||
# the 4 docs? Undecided.
|
||||
${PAGER:-more} $PKGPATH/{README,$PKGNAME.SlackBuild,$PKGNAME.info,\
|
||||
slack-desc}
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue