5c358d4542
Add support for xz and lzma to lesspipe.sh (xzless, lzless) Bump __FreeBSD_version Approved by: delphij (mentor) MFC after: 2 weeks
23 lines
292 B
Bash
23 lines
292 B
Bash
#! /bin/sh
|
|
# ex:ts=8
|
|
|
|
# $FreeBSD$
|
|
|
|
case "$1" in
|
|
*.Z)
|
|
exec uncompress -c "$1" 2>/dev/null
|
|
;;
|
|
*.gz)
|
|
exec gzip -d -c "$1" 2>/dev/null
|
|
;;
|
|
*.bz2)
|
|
exec bzip2 -d -c "$1" 2>/dev/null
|
|
;;
|
|
*.xz)
|
|
exec xz -d -c "$1" 2>/dev/null
|
|
;;
|
|
*.lzma)
|
|
exec lzma -d -c "$1" 2>/dev/null
|
|
;;
|
|
esac
|