summaryrefslogtreecommitdiff
path: root/Build/source/utils/lzma/extra/less/lesspipe-1.53-lzma.patch
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-05-15 16:12:48 +0000
committerKarl Berry <karl@freefriends.org>2008-05-15 16:12:48 +0000
commitbd2d913a35df5a223eab385296046922ecdd1d4e (patch)
treec125f8fe4c2337ada9ee569ceb5c8f9cc4bccf37 /Build/source/utils/lzma/extra/less/lesspipe-1.53-lzma.patch
parent93b3db7c8015cf9b3e4970fb154f91d87225c35a (diff)
rename lzma-utils to lzma, since that is now the upstream name
git-svn-id: svn://tug.org/texlive/trunk@8161 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/lzma/extra/less/lesspipe-1.53-lzma.patch')
-rw-r--r--Build/source/utils/lzma/extra/less/lesspipe-1.53-lzma.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/Build/source/utils/lzma/extra/less/lesspipe-1.53-lzma.patch b/Build/source/utils/lzma/extra/less/lesspipe-1.53-lzma.patch
new file mode 100644
index 00000000000..10b63493043
--- /dev/null
+++ b/Build/source/utils/lzma/extra/less/lesspipe-1.53-lzma.patch
@@ -0,0 +1,33 @@
+# This patch has been put into the public domain
+# by Per Øyvind Karlsen <pkarlsen@mandriva.com>.
+
+--- lesspipe.sh.old 2006-09-20 20:21:46.000000000 +0200
++++ lesspipe.sh 2007-05-04 00:10:43.000000000 +0200
+@@ -180,6 +180,12 @@ get_cmd () {
+ set "$1" $tmp..
+ fi
+
++ #(peroyvind): magic bytes for lzma not okay yet, do check against file ending in stead
++ if [[ "$2" = *.lzma ]] ; then
++ cmd=(lzma -cd "$2")
++ return
++ fi
++
+ if [[ "$1" = *bzip*compress* || "$1" = *compress[\'e]d\ * || "$1" = *packed\ data* ]]; then
+ if [[ "$3" = $sep$sep ]]; then
+ return
+--- lesspipe.sh.in.lzma 2007-06-07 16:14:38.000000000 +0200
++++ lesspipe.sh.in 2007-06-07 16:14:40.000000000 +0200
+@@ -183,6 +183,12 @@ get_cmd () {
+ set "$1" $tmp..
+ fi
+
++ #(peroyvind): magic bytes for lzma not okay yet, do check against file ending in stead
++ if [[ "$2" = *.lzma ]] ; then
++ cmd=(lzma -cd "$2")
++ return
++ fi
++
+ if [[ "$1" = *bzip*compress* || "$1" = *compress[\'e]d\ * || "$1" = *packed\ data* ]]; then
+ if [[ "$3" = $sep$sep ]]; then
+ return