Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/scripts/xzless.in

Issue 62403002: Update XZ Utils to 5.0.5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xz/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/scripts/xzgrep.in ('k') | src/scripts/xzmore.1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!@POSIX_SHELL@ 1 #!@POSIX_SHELL@
2 2
3 # Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation 3 # Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
4 4
5 # The original version for gzip was written by Paul Eggert. 5 # The original version for gzip was written by Paul Eggert.
6 # Modified for XZ Utils by Andrew Dudman and Lasse Collin. 6 # Modified for XZ Utils by Andrew Dudman and Lasse Collin.
7 7
8 # This program is free software; you can redistribute it and/or modify 8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by 9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or 10 # the Free Software Foundation; either version 2 of the License, or
(...skipping 28 matching lines...) Expand all
39 if test "${LESSMETACHARS+set}" != set; then 39 if test "${LESSMETACHARS+set}" != set; then
40 # Work around a bug in less 394 and earlier; 40 # Work around a bug in less 394 and earlier;
41 # it mishandles the metacharacters '$%=~'. 41 # it mishandles the metacharacters '$%=~'.
42 space=' ' 42 space=' '
43 tab=' ' 43 tab=' '
44 nl=' 44 nl='
45 ' 45 '
46 LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~' 46 LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~'
47 fi 47 fi
48 48
49 if test "$(less -V | { read ver && echo ${ver#less }; })" -ge 429; then 49 if test "$(less -V | { read less ver re && echo ${ver}; })" -ge 429; then
50 # less 429 or later: LESSOPEN pipe will be used on 50 # less 429 or later: LESSOPEN pipe will be used on
51 # standard input if $LESSOPEN begins with |-. 51 # standard input if $LESSOPEN begins with |-.
52 LESSOPEN="|-$xz -cdfq -- %s" 52 LESSOPEN="|-$xz -cdfq -- %s"
53 else 53 else
54 LESSOPEN="|$xz -cdfq -- %s" 54 LESSOPEN="|$xz -cdfq -- %s"
55 fi 55 fi
56 export LESSMETACHARS LESSOPEN 56 export LESSMETACHARS LESSOPEN
57 57
58 exec less "$@" 58 exec less "$@"
OLDNEW
« no previous file with comments | « src/scripts/xzgrep.in ('k') | src/scripts/xzmore.1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698