Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/utils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22421

Modified Files:
        lesspipe.info 
Log Message:
file version 4.09 and above doesn't need MAGIC environment any longer

Index: lesspipe.info
===================================================================
RCS file: /cvsroot/fink/dists/10.3/unstable/main/finkinfo/utils/lesspipe.info,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- lesspipe.info       2 Apr 2004 06:08:42 -0000       1.4
+++ lesspipe.info       17 Apr 2004 21:40:58 -0000      1.5
@@ -1,12 +1,12 @@
 Package: lesspipe
 Version: 1.41
-Revision: 1
+Revision: 2
 Source: ftp://ftp.ifh.de/pub/unix/utility/lesspipe.tar.gz
 SourceRename: %n-%v.tar.gz
 Source-MD5: a5e19e5cdcf67cbf275def4cb73c2a4a
 SourceDirectory: %n-%v
 BuildDepends: fink (>= 0.18.0) 
-Recommends: lynx, antiword, rpm, ghostscript, html2text
+Recommends: file (>= 4.09), lynx, antiword, rpm, ghostscript, html2text
 CompileScript: <<
  ./configure --prefix=%p --yes
 <<
@@ -27,12 +27,14 @@
  cat >%i/etc/profile.d/%n.sh <<EOF
 export LESSOPEN='| %p/bin/lesspipe.sh %%s'
 
-if [ -z "\$MAGIC" ]; then
-    MAGIC=%p/share/%n/magic:/usr/share/file/magic
-else
-    prepend_path MAGIC %p/share/%n/magic
+if [ \`file -v | /usr/bin/sed -n 's/file-\([0-9.]\).\([0-9]\)/\1\2/p'\` -lt 409 ]; 
then
+    if [ -z "\$MAGIC" ]; then
+        MAGIC=%p/share/%n/magic:/usr/share/file/magic
+    else
+        prepend_path MAGIC %p/share/%n/magic
+    fi
+    export MAGIC
 fi
-export MAGIC
  
 if [ \`less --version | /usr/bin/sed -n 's/less\ \([0-9]\)/\1/p'\` -ge 346 ]; then
     option="--RAW-CONTROL-CHARS"
@@ -52,10 +54,12 @@
  cat >%i/etc/profile.d/%n.csh <<EOF
 setenv LESSOPEN '| %p/bin/lesspipe.sh %%s'
 
-if ( \$?MAGIC ) then
-    prepend_path MAGIC %p/share/%n/magic
-else
-    setenv MAGIC %p/share/%n/magic:/usr/share/file/magic
+if ( \`file -v | sed -n 's/file-\([0-9.]\).\([0-9]\)/\1\2/p'\` < 409 ) then
+    if ( \$?MAGIC ) then
+        prepend_path MAGIC %p/share/%n/magic
+    else
+        setenv MAGIC %p/share/%n/magic:/usr/share/file/magic
+    endif
 endif
  
 if ( \`less --version | sed -n 's/less\ \([0-9]\)/\1/p'\` >= 346 ) then



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to