Re: cvs: pear /PHP_CompatInfo package.xml package2.xml

From: Date: Wed, 30 Aug 2006 04:17:07 +0000
Subject: Re: cvs: pear /PHP_CompatInfo package.xml package2.xml
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41916@lists.php.net to get a copy of this message
Laurent Laville wrote: > farell Tue Aug 29 18:30:50 2006 UTC > > Modified files: > /pear/PHP_CompatInfo package.xml package2.xml > Log: > prepare stable release 1.3.0 [snip] > > http://cvs.php.net/viewvc.cgi/pear/PHP_CompatInfo/package2.xml?r1=1.9&r2=1.10&diff_format=u > Index: pear/PHP_CompatInfo/package2.xml > diff -u pear/PHP_CompatInfo/package2.xml:1.9 pear/PHP_CompatInfo/package2.xml:1.10 > --- pear/PHP_CompatInfo/package2.xml:1.9 Wed Aug 23 20:34:19 2006 > +++ pear/PHP_CompatInfo/package2.xml Tue Aug 29 18:30:50 2006 [snip] > + <dir name="scripts"> > + <file name="compatinfo.bat" role="script"> > + <tasks:windowseol /> > + <tasks:replace from="@php_dir@" to="php_dir" > type="pear-config" /> > + <tasks:replace from="@php_bin@" to="php_bin" > type="pear-config" /> > + </file> > + </dir> <!-- /scripts --> This needs a baseinstalldir="". To do that in PFM, add 'scripts/compatinfo.bat' => '' into the 'exceptions' option. See below for more info on how to get this into the path, as this isn't the only step. [snip] > - <phprelease /> > + <phprelease> > + <installconditions> > + <os> > + <name>windows</name> > + </os> > + </installconditions> > + <filelist> > + <ignore name="scripts/compatinfo.bat" /> > + </filelist> > + </phprelease> This is pretty much wrong because you are instructing PEAR to ignore the .bat file on windows. I would suggest using this phprelease tag set: <phprelease> <installconditions> <os> <name>windows</name> </os> </installconditions> <filelist> <install as="compatinfo.bat" name="scripts/compatinfo.bat" /> </filelist> </phprelease> <phprelease> <filelist> <ignore name="scripts/compatinfo.bat" /> </filelist> </phprelease> I know you use PFM2 to make this, so what you want is $pfm->addRelease(); $pfm->setOsInstallCondition('windows'); $pfm->addInstallAs('scripts/compatinfo.bat', 'compatinfo.bat'); $pfm->addRelease(); $pfm->addIgnoreToRelease('scripts/compatinfo.bat'); This should clear up the problems you've experienced with getting the thing to work. Greg

« previous php.pear.cvs (#41916) next »