public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-text/lv/files: lv-4.51-xz.diff
@ 2010-10-11  8:12 Akinori Hattori (hattya)
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori (hattya) @ 2010-10-11  8:12 UTC (permalink / raw
  To: gentoo-commits

hattya      10/10/11 08:12:47

  Added:                lv-4.51-xz.diff
  Log:
  add filter for .lzma and .xz.
  (Portage version: 2.1.8.3/cvs/Linux i686)

Revision  Changes    Path
1.1                  app-text/lv/files/lv-4.51-xz.diff

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/lv/files/lv-4.51-xz.diff?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/lv/files/lv-4.51-xz.diff?rev=1.1&content-type=text/plain

Index: lv-4.51-xz.diff
===================================================================
diff -ur lv451.orig/index.html lv451/index.html
--- lv451.orig/index.html
+++ lv451/index.html
@@ -301,8 +301,11 @@
 	<P>
 	Compressed files that have suffix ``gz'', ``z'', or ``GZ'', ``Z'' are
 	extracted by lv using <I>zcat</I> (1),
-	and ``bz2'' or ``BZ2'' with <I>bzcat</I> (1).
-	Please install <I>zcat</I> and <I>bzcat</I> that can expand all of them.
+	``bz2'' or ``BZ2'' with <I>bzcat</I> (1).
+	``lzma'' or ``LZMA'' with <I>lzcat</I> (1).
+	and ``xz'' or ``XZ'' with <I>xzcat</I> (1).
+	Please install <I>zcat</I>, <I>bzcat</I>, <I>lzcat</I> and <I>xzcat</I>
+	that can expand all of them.
 	<P>
 	In case that standard output is not connected to an ordinal terminal
 	but to redirect or pipe-line,
diff -ur lv451.orig/src/stream.c lv451/src/stream.c
--- lv451.orig/src/stream.c
+++ lv451/src/stream.c
@@ -43,6 +43,8 @@
 
 private byte *gz_filter = "zcat";
 private byte *bz2_filter = "bzcat";
+private byte *lzma_filter = "lzcat";
+private byte *xz_filter = "xzcat";
 
 private stream_t *StreamAlloc()
 {
@@ -75,10 +77,14 @@
       filter = gz_filter;
     else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) )
       filter = bz2_filter;
+    else if( !strcmp( "lzma", exts ) || !strcmp( "LZMA", exts ) )
+      filter = lzma_filter;
+    else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) )
+      filter = xz_filter;
   }
   if( NULL != filter ){
     /*
-     * zcat or bzcat
+     * zcat or bzcat or lzcat or xzcat
      */
     if( NULL == (st->fp = (FILE *)tmpfile()) )
       perror( "temporary file" ), exit( -1 );






^ permalink raw reply	[flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-text/lv/files: lv-4.51-xz.diff
@ 2011-08-13 12:44 Akinori Hattori (hattya)
  0 siblings, 0 replies; 2+ messages in thread
From: Akinori Hattori (hattya) @ 2011-08-13 12:44 UTC (permalink / raw
  To: gentoo-commits

hattya      11/08/13 12:44:44

  Modified:             lv-4.51-xz.diff
  Log:
  update to EAPI 4.
  
  (Portage version: 2.1.10.3/cvs/Linux i686)

Revision  Changes    Path
1.2                  app-text/lv/files/lv-4.51-xz.diff

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/lv/files/lv-4.51-xz.diff?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/lv/files/lv-4.51-xz.diff?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/lv/files/lv-4.51-xz.diff?r1=1.1&r2=1.2

Index: lv-4.51-xz.diff
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-text/lv/files/lv-4.51-xz.diff,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- lv-4.51-xz.diff	11 Oct 2010 08:12:47 -0000	1.1
+++ lv-4.51-xz.diff	13 Aug 2011 12:44:44 -0000	1.2
@@ -1,4 +1,3 @@
-diff -ur lv451.orig/index.html lv451/index.html
 --- lv451.orig/index.html
 +++ lv451/index.html
 @@ -301,8 +301,11 @@
@@ -15,7 +14,6 @@
  	<P>
  	In case that standard output is not connected to an ordinal terminal
  	but to redirect or pipe-line,
-diff -ur lv451.orig/src/stream.c lv451/src/stream.c
 --- lv451.orig/src/stream.c
 +++ lv451/src/stream.c
 @@ -43,6 +43,8 @@






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-13 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11  8:12 [gentoo-commits] gentoo-x86 commit in app-text/lv/files: lv-4.51-xz.diff Akinori Hattori (hattya)
  -- strict thread matches above, loose matches on Subject: below --
2011-08-13 12:44 Akinori Hattori (hattya)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox