summaryrefslogtreecommitdiffstats
path: root/source/a/less
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2024-04-12 19:08:59 +0000
committer Eric Hameleers <alien@slackware.com>2024-04-12 22:01:31 +0200
commitb280795dd541d3d520a83295c4049b32f50df32e (patch)
tree8d80a977fb038a914751d0fbed6a49af17d9f0d6 /source/a/less
parent79267f6e54a1227ee4db836d4cf36c100ec8d5b7 (diff)
downloadcurrent-b280795dd541d3d520a83295c4049b32f50df32e.tar.gz
current-b280795dd541d3d520a83295c4049b32f50df32e.tar.xz
Fri Apr 12 19:08:59 UTC 202420240412190859
a/less-653-x86_64-1.txz: Upgraded. d/ninja-1.12.0-x86_64-1.txz: Upgraded. d/valgrind-3.22.0-x86_64-1.txz: Added. Thanks to Kyle Guinn, Peter Wang, and Willy Sudiarto Raharjo. l/netpbm-11.06.01-x86_64-1.txz: Upgraded. n/php-8.3.6-x86_64-1.txz: Upgraded. This update fixes bugs and security issues. For more information, see: https://www.php.net/ChangeLog-8.php#8.3.6 (* Security fix *)
Diffstat (limited to 'source/a/less')
-rwxr-xr-xsource/a/less/less.SlackBuild6
-rw-r--r--source/a/less/lesspipe.sh2
2 files changed, 5 insertions, 3 deletions
diff --git a/source/a/less/less.SlackBuild b/source/a/less/less.SlackBuild
index 002899a60..1ea2e2077 100755
--- a/source/a/less/less.SlackBuild
+++ b/source/a/less/less.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2005-2022 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2005-2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -74,7 +74,9 @@ tar xvf $CWD/less-$VERSION.tar.?z || exit 1
cd less-$VERSION || exit 1
# Fix path in manpage:
-sed -i "s,/usr/local/etc,/etc,g" less.nro
+if [ -r less.nro ]; then
+ sed -i "s,/usr/local/etc,/etc,g" less.nro
+fi
chown -R root:root .
find . \
diff --git a/source/a/less/lesspipe.sh b/source/a/less/lesspipe.sh
index b5d76d48a..6bc9ff64d 100644
--- a/source/a/less/lesspipe.sh
+++ b/source/a/less/lesspipe.sh
@@ -33,7 +33,7 @@ lesspipe() {
*.tgz | *.tar.gz | *.tar.Z | *.tar.z | *.tar.bz2 | *.tbz ) tar tvvf "$1" 2>/dev/null ;;
*.tlz | *.tar.lz ) lzip -dc "$1" 2> /dev/null | tar tvvf - 2> /dev/null ;;
*.txz | *.tar.xz ) xz -dc "$1" 2> /dev/null | tar tvvf - 2> /dev/null ;;
- *.tzst | *.tar.zst | *.tar.zstd ) tar tvvf "$1" 2> /dev/null ;;
+ *.tzst | *.tzz | *.tar.zst | *.tar.zstd ) tar tvvf "$1" 2> /dev/null ;;
*.zip) unzip -l "$1" 2>/dev/null ;;
*.rpm) rpm -qpvl "$1" 2>/dev/null ;;
*.rar) # check if rar is installed first