Re: PEAR_PackageFileManager2 specifying install exceptions for certain files

From: Date: Mon, 12 Feb 2007 20:34:47 +0000
Subject: Re: PEAR_PackageFileManager2 specifying install exceptions for certain files
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45641@lists.php.net to get a copy of this message
Pavel Shevaev wrote: > Hi, folks > > I'm new to this list and not really sure if this question should go > here(please correct me if so) but i couldn't find a better place :( > > What i want to achieve is to specify different baseinstalldir for > certain files with PEAR_PackageFileManager2. What is the best way to > achieve this? > > Say i have the following package layout in my repository: > > Foo > `--bin > `--some_cli_script > `--src > `-... > > All files in 'src' should be installed as is, while > "bin/some_cli_script" should be installed as > @php_dir@/some_cli_script. I'm pretty sure it all has something to do > with 'installexceptions' property for PEAR_PackageFileManager2 :: > setOptions(...) but i couldn't find any examples how to achieve > that(actually i found something in API doc for this class but i don't > quite understand what's going on there). Hi Pavel, Sorry for the confusion on this point, any suggestions on clarifying the manual? what you need is: 'installexceptions' => array( 'bin/some_cli_script' => 'some_cli_script', ); In other words, installexceptions should contain the full path within package.xml to the file, and the full path you expect it to be installed into. Greg

« previous php.pear.dev (#45641) next »