For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > December 2005 > Re: [PEAR-DOC] cvs: peardoc /scripts make-chm.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-DOC] cvs: peardoc /scripts make-chm.php
anatoly techtonik

2005-12-03, 6:56 pm

Hello Mark,

Mark, File_SearchReplace accepts arrays also - get it from CVS
http://cvs.php.net/cvs.php/pear/File_SearchReplace

Martin, can somebody from PEAR group finally give me access to
pearweb to release this package? Somebody gave it to user
"anatoly" - I can only guess it was an error.


From=20Tuesday, November 29, 2005, 6:52:54 PM, you wrote:

MW> wiesemann=09=09Tue Nov 29 11:52:54 2005 EDT

MW> Modified files: =20
MW> /peardoc/scripts=09make-chm.php=20
MW> Log:
MW> fixed usage of File_SearchReplace (it only accepts strings, not array=
s)
=20
MW> http://cvs.php.net/diff.php/peardoc...r1=3D1.1&r2=3D=
1.2&ty=3Du
MW> Index: peardoc/scripts/make-chm.php
MW> diff -u peardoc/scripts/make-chm.php:1.1
MW> peardoc/scripts/make-chm.php:1.2
MW> --- peardoc/scripts/make-chm.php:1.1=09Sun Mar 13 12:47:53 2005
MW> +++ peardoc/scripts/make-chm.php=09Tue Nov 29 11:52:50 2005
MW> @@ -17,7 +17,7 @@
MW> | anatoly techtonik <techtonik@php.net> =20
MW> =20
MW> +----------------------------------------------------------------------+
=20
MW> - $Id: make-chm.php,v 1.1 2005/03/13 17:47:53 techtonik Exp $
MW> + $Id: make-chm.php,v 1.2 2005/11/29 16:52:50 wiesemann Exp $
MW> */
=20
MW> /**
MW> @@ -139,18 +139,15 @@
=20
MW> copyr($ind, $outd);
=20
MW> -echo "Filtering...\n";
MW> -
MW> foreach (glob("$cwd/htmlhelp/*") as $suppfile) {
MW> copy($suppfile, "$outd/".basename($suppfile));
MW> }
MW> $thtmlfiles =3D glob("$outd/*.html");
=20
MW> -$find_rx =3D array();
MW> -$replace =3D array();
MW> +echo "Filtering (</HEAD) ...\n";
=20
MW> -$find_rx[] =3D '|</HEAD|ims';
MW> -$replace[] =3D=20
MW> +$find_rx =3D '|</HEAD|ims';
MW> +$replace =3D=20
MW> '
MW> <link rel=3D"stylesheet" type=3D"text/css" href=3D"pear.css" />
MW> <link rel=3D"stylesheet" type=3D"text/css" href=3D"custom.css" />
MW> @@ -158,9 +155,21 @@
=20
MW> </HEAD';
=20
MW> +$sr =3D &new File_SearchReplace(
MW> + $find_rx,
MW> + $replace,
MW> + $thtmlfiles
MW> + );
MW> +
+$sr->>setSearchFunction("preg");
+$sr->>doSearch();
MW> +
MW> +echo "\nFilter replacements (</HEAD): " . $sr->occurences." ".$sr->la=
st_error;
MW> +
MW> +echo "Filtering (</BODY) ...\n";
=20
MW> -$find_rx[] =3D '|</BODY|is';
MW> -$replace[] =3D '
MW> +$find_rx =3D '|</BODY|is';
MW> +$replace =3D '
MW> <div id=3D"context_menu">
MW> <input type=3D"hidden" id=3D"tmpText">
MW> <div id=3D"context_pear">
MW> @@ -220,7 +229,7 @@
MW> $sr->setSearchFunction("preg");
MW> $sr->doSearch();
=20
MW> -echo "\nFilter replacements: " . $sr->occurences." ".$sr->last_error;
MW> +echo "\nFilter replacements (</BODY): " . $sr->occurences." ".$sr->la=
st_error;
=20
MW> // pull date, copyright from original index.html
MW> $index =3D file_get_contents("$ind/index.html");


=20

--=20
anatoly
Martin Jansen

2005-12-03, 6:56 pm

On Sat Dec 03, 2005 at 09:0046PM +0200, anatoly techtonik wrote:
> Martin, can somebody from PEAR group finally give me access to
> pearweb to release this package? Somebody gave it to user
> "anatoly" - I can only guess it was an error.


Done. And could you please remove this ridiculous user information on
http://pear.php.net/user/techtonik?

- Martin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com