Skip to content

Commit

Permalink
Use project slug prefix and exclude empty dirs when creating zip/tar.
Browse files Browse the repository at this point in the history
See #5
  • Loading branch information
raamdev committed Jun 19, 2015
1 parent 52a2c32 commit 1df2def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/psr4/.build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
<echo msg="------------------------------------" />

<echo msg="Creating ZIP file: ${project.basedir}/.~build/${project_slug}.zip" />
<zip basedir="${project.basedir}" destfile="${project.basedir}/.~build/${project_slug}.zip">
<zip basedir="${project.basedir}" prefix="${project_slug}/" includeemptydirs="false" destfile="${project.basedir}/.~build/${project_slug}.zip">
<fileset refid="_zip_tgz_fileset" />
</zip>
<echo msg="------------------------------------" />
Expand All @@ -550,7 +550,7 @@
<echo msg="------------------------------------" />

<echo msg="Creating TGZ file: ${project.basedir}/.~build/${project_slug}.tar.gz" />
<tar basedir="${project.basedir}" destfile="${project.basedir}/.~build/${project_slug}.tar.gz" compression="gzip">
<tar basedir="${project.basedir}" prefix="${project_slug}/" includeemptydirs="false" destfile="${project.basedir}/.~build/${project_slug}.tar.gz" compression="gzip">
<fileset refid="_zip_tgz_fileset" />
</tar>
<echo msg="------------------------------------" />
Expand Down

0 comments on commit 1df2def

Please sign in to comment.