How to strip down paths in package.xml via file-tag?
Im trying to simplify my `package.xml` file, because it contains many of this

    <phprelease>
	    <filelist>
		    <install as="path/to/my/Class.php" name="classes/path/to/my/Class.php" />
		    <!-- Many more of this -->
	    </filelist>
    </phprelease>

According the [Manual][1], it should be possible, to strip relative paths by using the `baseinstalldir`-attribute, but its either (a kind of) ignored, or leads to curious pathnames. For example

    <dir name="/">
      <dir name="classes">
        <file baseinstalldir="/path/to/my" name="path/to/my/Class.php" role="php" />
      </dir>
    </dir>

installs the file into `path/to/my/classes/path/to/my/Class.php`, that is obvious crap.

Does anyone knows a solution to strip one folder from the path, that does not require a big bunch of `install-as`-elements?

  [1]: http://pear.php.net/manual/en/guide.users.concepts.filerole.php
How to strip down paths in package.xml via file-tag?
===

Im trying to simplify my `package.xml` file, because it contains many of this

    <phprelease>
	    <filelist>
		    <install as="path/to/my/Class.php" name="classes/path/to/my/Class.php" />
		    <!-- Many more of this -->
	    </filelist>
    </phprelease>

According the [Manual][1], it should be possible, to strip relative paths by using the `baseinstalldir`-attribute, but its either (a kind of) ignored, or leads to curious pathnames. For example

    <dir name="/">
      <dir name="classes">
        <file baseinstalldir="/path/to/my" name="path/to/my/Class.php" role="php" />
      </dir>
    </dir>

installs the file into `path/to/my/classes/path/to/my/Class.php`, that is obvious crap.

Does anyone knows a solution to strip one folder from the path, that does not require a big bunch of `install-as`-elements?

  [1]: http://pear.php.net/manual/en/guide.users.concepts.filerole.php