on the way making package.xml better
This commit is contained in:
parent
d51768ab40
commit
4d9b6950cf
1 changed files with 33 additions and 0 deletions
33
build.xml
33
build.xml
|
@ -93,12 +93,14 @@
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<!-- map directory (key) to role -->
|
||||||
<dirroles key="www">www</dirroles>
|
<dirroles key="www">www</dirroles>
|
||||||
<dirroles key="data">data</dirroles>
|
<dirroles key="data">data</dirroles>
|
||||||
<dirroles key="doc">doc</dirroles>
|
<dirroles key="doc">doc</dirroles>
|
||||||
<dirroles key="src">php</dirroles>
|
<dirroles key="src">php</dirroles>
|
||||||
<dirroles key="tests">test</dirroles>
|
<dirroles key="tests">test</dirroles>
|
||||||
|
|
||||||
|
<!-- do not add the following file to the package -->
|
||||||
<ignore>build*</ignore>
|
<ignore>build*</ignore>
|
||||||
<ignore>dist</ignore>
|
<ignore>dist</ignore>
|
||||||
<ignore>doc/developers</ignore>
|
<ignore>doc/developers</ignore>
|
||||||
|
@ -122,6 +124,37 @@
|
||||||
<install as="doctrine" name="bin/doctrine" />
|
<install as="doctrine" name="bin/doctrine" />
|
||||||
-->
|
-->
|
||||||
</d51pearpkg2>
|
</d51pearpkg2>
|
||||||
|
|
||||||
|
<!-- time to fix the package.xml file since the task does not
|
||||||
|
allow everything we need:
|
||||||
|
- strip the base directory names like src, data and www
|
||||||
|
- remove that dumb baseinstalldir from files
|
||||||
|
- md5sums are generated automatically when packaging
|
||||||
|
-->
|
||||||
|
<!-- yes, we need to generate a 2nd file and move it back -->
|
||||||
|
<copy file="package.xml" tofile="package2.xml" overwrite="true">
|
||||||
|
<filterchain>
|
||||||
|
<replaceregexp>
|
||||||
|
<!-- remove md5sums -->
|
||||||
|
<regexp
|
||||||
|
pattern="md5sum="[a-z0-9]{32}" "
|
||||||
|
replace=""
|
||||||
|
/>
|
||||||
|
<!-- remove baseinstalldir for files -->
|
||||||
|
<regexp
|
||||||
|
pattern="<file baseinstalldir="/""
|
||||||
|
replace="<file"
|
||||||
|
/>
|
||||||
|
<!-- install-as for different directories -->
|
||||||
|
<regexp
|
||||||
|
pattern="(<file name="data/(.+)")"
|
||||||
|
replace="\1 install-as="SemanticScuttle/\2""
|
||||||
|
/>
|
||||||
|
</replaceregexp>
|
||||||
|
</filterchain>
|
||||||
|
</copy>
|
||||||
|
<move file="package2.xml" tofile="package.xml" overwrite="true" />
|
||||||
|
|
||||||
<!-- <tar destfile="${dist.dir}/DoctrineORM-${version_name}.tgz" basedir="${build.dir}/orm" compression="gzip" />-->
|
<!-- <tar destfile="${dist.dir}/DoctrineORM-${version_name}.tgz" basedir="${build.dir}/orm" compression="gzip" />-->
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
Loading…
Reference in a new issue