summaryrefslogtreecommitdiff
path: root/lang/php
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-11-01 20:17:20 +0000
committerjdolecek <jdolecek>2004-11-01 20:17:20 +0000
commit89fff390def30cec00bb9a186cbcbe86ea2e5958 (patch)
treec04766d38e9c31aaf2d3f7fcefc1e34b70a122c4 /lang/php
parent35474e12a2aba2d4da9852e564cf79185eea7968 (diff)
downloadpkgsrc-89fff390def30cec00bb9a186cbcbe86ea2e5958.tar.gz
Deal with backslashes in the file names, translate them to forward
slashes. This is necessary e.g. for pear-DIME, which uses backslashes.
Diffstat (limited to 'lang/php')
-rw-r--r--lang/php/pear_plist.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/php/pear_plist.php b/lang/php/pear_plist.php
index 682a6a22ec4..405240df295 100644
--- a/lang/php/pear_plist.php
+++ b/lang/php/pear_plist.php
@@ -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 @@ foreach($info['filelist'] as $f => $v) {
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";