Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > db03f25d66429341bf836a4759a061b8 > files > 22

man-1.6e-9mdv2009.1.src.rpm

diff -Naurp man-1.6e/configure man-1.6e.oden/configure
--- man-1.6e/configure	2008-12-21 19:20:51.000000000 +0100
+++ man-1.6e.oden/configure	2008-12-21 19:20:32.000000000 +0100
@@ -1027,7 +1027,7 @@ then
   then
     DO_COMPRESSION=true
     compress=
-    for i in bzip2 gzip bzip tzip pack compress freeze yabba
+    for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
     do
       eval F$i=missing
       for j in $DEFPATH
@@ -1080,6 +1080,7 @@ then
     fi
 
     case $compress in
+      *lzma*) ext=".lzma" ;;
       *bzip2*) ext=".bz2" ;;
       *gzip*) ext=".gz" ;;
       *bzip*) ext=".bz" ;;
@@ -1122,7 +1123,7 @@ then
 fi
 
 # unconditionally handle uncompression
-UNCOMPRESSORS="gunzip bzip2 pcat zcat fcat unyabba"
+UNCOMPRESSORS="unlzma gunzip bzip2 pcat zcat fcat unyabba"
 for i in $UNCOMPRESSORS
 do
   eval F$i=missing
@@ -1143,6 +1144,10 @@ bzip2=missing
 if [ $Fbzip2 != missing ]; then
   bzip2="$Fbzip2 -c -d"
 fi
+unlzma=missing
+if [ $Funlzma != missing ]; then
+  unlzma="$Funlzma -c -d"
+fi
 pcat="$Fpcat"
 zcat="$Fzcat"
 fcat="$Ffcat"
@@ -1171,6 +1176,9 @@ if [ x$default = x ]; then
 	bzip2)
 	  echo "Command to use for .bz2 files (standard bzip2)"
 	  echo $n "[`eval echo \\$$filter`] $c" ;;
+	lzma)
+	  echo "Command to use for .lzma files (standard lzma)"
+	  echo $n "[`eval echo \\$$filter`] $c" ;;
         pcat)
           echo "Command to use for .z files (pack/unpack)"
           echo $n "[`eval echo \\$$filter`] $c" ;;
@@ -1232,6 +1240,7 @@ fi
 case $compress_ext in
   .gz) decompress=$gunzip ;;
   .bz2) decompress=$bzip2 ;;
+  .lzma) decompress=$unlzma ;;
   .z) decompress=$pcat ;;
   .Z) decompress=$zcat ;;
   .F) decompress=$fcat ;;
@@ -1319,6 +1328,7 @@ s,@pcat@,$pcat,
 s,@zcat@,$zcat,
 s,@gunzip@,$gunzip,
 s,@bzip2@,$bzip2,
+s,@unlzma@,$unlzma,
 s,@unyabba@,$unyabba,
 s,@compress@,$compress,
 s,@compress_ext@,$compress_ext,
diff -Naurp man-1.6e/src/makewhatis.sh man-1.6e.oden/src/makewhatis.sh
--- man-1.6e/src/makewhatis.sh	2008-12-21 19:20:51.000000000 +0100
+++ man-1.6e.oden/src/makewhatis.sh	2008-12-21 19:20:32.000000000 +0100
@@ -220,7 +220,7 @@ do
 	    find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | LC_ALL=C $AWK -v MAN_NAME="$MAN_NAME" -v MAN_DESCRIPTION="$MAN_DESCRIPTION" '
 
 	    function readline() {
-	      if (use_zcat || use_bzcat) {
+	      if (use_zcat || use_bzcat || use_lzcat) {
 		result = (pipe_cmd | getline);
 		if (result < 0) {
 		  print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr";
@@ -235,7 +235,7 @@ do
 	    }
 	    
 	    function closeline() {
-	      if (use_zcat || use_bzcat) {
+	      if (use_zcat || use_bzcat || use_lzcat) {
 		return close(pipe_cmd);
 	      } else {
 		return close(filename);
@@ -254,7 +254,9 @@ do
 			 match(filename,"\\.z$") || match(filename,"\\.gz$");
 	      if (!use_zcat)
 		use_bzcat = match(filename,"\\.bz2");
-	      if (use_zcat || use_bzcat) {
+	      if(!use_bzcat)
+		use_lzcat = match(filename,"\\.lzma");
+	      if (use_zcat || use_bzcat || use_lzcat ) {
 		filename_no_gz = substr(filename, 0, RSTART - 1);
 	      } else {
 		filename_no_gz = filename;
@@ -267,12 +269,14 @@ do
 		actual_section = section;
 	      }
 	      sub(/\..*/, "", progname);
-	      if (use_zcat || use_bzcat) {
+	      if (use_zcat || use_bzcat || use_lzcat) {
 		if (use_zcat) {
 		  pipe_cmd = "zcat \"" filename "\"";
-		} else {
+	  	} else if (use_bzcat) {
 		  pipe_cmd = "bzcat \"" filename "\"";
-		}
+		} else {
+		  pipe_cmd = "lzcat \"" filename "\"";
+	  	}
 		# try to avoid suspicious stuff
 		if (filename ~ /[;&|`$(]/) {
 		  print "ignored strange file name " filename " in " curdir > "/dev/stderr";
diff -Naurp man-1.6e/src/man.conf.in man-1.6e.oden/src/man.conf.in
--- man-1.6e/src/man.conf.in	2008-12-21 19:20:51.000000000 +0100
+++ man-1.6e.oden/src/man.conf.in	2008-12-21 19:20:32.000000000 +0100
@@ -139,6 +139,7 @@ MANSECT		@sections@
 #
 .gz		@gunzip@
 .bz2		@bzip2@
+.lzma		@unlzma@
 .z		@pcat@
 .Z		@zcat@
 .F		@fcat@