Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2017 20:06:24 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316979 - head/usr.bin/less
Message-ID:  <201704152006.v3FK6Ogw002541@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Apr 15 20:06:24 2017
New Revision: 316979
URL: https://svnweb.freebsd.org/changeset/base/316979

Log:
  Add a zstdless equivalent to zless, bzless xzless

Modified:
  head/usr.bin/less/Makefile
  head/usr.bin/less/lesspipe.sh

Modified: head/usr.bin/less/Makefile
==============================================================================
--- head/usr.bin/less/Makefile	Sat Apr 15 20:05:22 2017	(r316978)
+++ head/usr.bin/less/Makefile	Sat Apr 15 20:06:24 2017	(r316979)
@@ -12,7 +12,8 @@ LIBADD=	ncursesw
 LINKS=	${BINDIR}/less ${BINDIR}/more \
 	${BINDIR}/zless ${BINDIR}/bzless \
 	${BINDIR}/zless ${BINDIR}/xzless \
-	${BINDIR}/zless ${BINDIR}/lzless
+	${BINDIR}/zless ${BINDIR}/lzless \
+	${BINDIR}/zless ${BINDIR}/zstless
 MLINKS=	less.1 more.1
 CLEANFILES= less.1
 

Modified: head/usr.bin/less/lesspipe.sh
==============================================================================
--- head/usr.bin/less/lesspipe.sh	Sat Apr 15 20:05:22 2017	(r316978)
+++ head/usr.bin/less/lesspipe.sh	Sat Apr 15 20:06:24 2017	(r316979)
@@ -22,4 +22,7 @@ case "$1" in
 	*.lzma)
 		exec lzma -d -c "$1"	2>/dev/null
 		;;
+	*.zst)
+		exec zstd -d -q -c "$1"	2>/dev/null
+		;;
 esac



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704152006.v3FK6Ogw002541>