pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php Deal with backslashes in the file names, tran...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b9527ac12b46
branches:  trunk
changeset: 482692:b9527ac12b46
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Mon Nov 01 20:17:20 2004 +0000

description:
Deal with backslashes in the file names, translate them to forward
slashes. This is necessary e.g. for pear-DIME, which uses backslashes.

diffstat:

 lang/php/pear_plist.php |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 37266d171b5a -r b9527ac12b46 lang/php/pear_plist.php
--- a/lang/php/pear_plist.php   Mon Nov 01 20:06:36 2004 +0000
+++ b/lang/php/pear_plist.php   Mon Nov 01 20:17:20 2004 +0000
@@ -1,5 +1,5 @@
 <?php
-# $NetBSD: pear_plist.php,v 1.1 2004/11/01 19:55:57 jdolecek Exp $
+# $NetBSD: pear_plist.php,v 1.2 2004/11/01 20:17:20 jdolecek Exp $
 # Parses package XML file and outputs appropriate PLIST
 
 $PEAR_LIB = getenv('PEAR_LIB');
@@ -34,6 +34,9 @@
                break;
        }
 
+       # replace backslashes with forward slashes in the path name, for
+       # pear packages written by non-UNIX oriented authors.
+       $f = str_replace('\\', '/', $f);
 
        echo "{$PEAR_LIB}/{$prefix}{$f}\n";
 



Home | Main Index | Thread Index | Old Index