summaryrefslogtreecommitdiff
path: root/lang/php
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-11-01 20:17:20 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-11-01 20:17:20 +0000
commit4f4ebf540bcf8df31677f1058c3f48a7c9329a5d (patch)
treec04766d38e9c31aaf2d3f7fcefc1e34b70a122c4 /lang/php
parent1a2db1902f901a6890588082f4ee48ce3c8e7db6 (diff)
downloadpkgsrc-4f4ebf540bcf8df31677f1058c3f48a7c9329a5d.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";