diff options
author | xue <> | 2006-06-19 03:59:09 +0000 |
---|---|---|
committer | xue <> | 2006-06-19 03:59:09 +0000 |
commit | 2664ae55742f7b05f29397698fc43ee64357b4f1 (patch) | |
tree | 87cff1c869c17472ca4d4defc8005ae353edc367 | |
parent | d9a6e743bff30c14b8235d62858a0ccdbe8910c6 (diff) |
Adjust build based on OS.
-rw-r--r-- | build.xml | 29 | ||||
-rw-r--r-- | buildscripts/phing/tasks/PradoVersionTask.php | 4 |
2 files changed, 24 insertions, 9 deletions
@@ -169,7 +169,12 @@ ignorelist="*pradolite.php,*3rdParty/*,*Javascripts/*,*I18N/core/*" output="HTML:frames:default,CHM:default:default,HTML:Smarty:PradoSoft" /> <!-- generate CHM file --> - <exec command="${hhc} ${build.doc.dir}/manual/CHMdefaultConverter/phpdoc.hhp" /> + <if> + <equals arg1="${prado.winbuild}" arg2="true"/> + <then> + <exec command="${hhc} ${build.doc.dir}/manual/CHMdefaultConverter/phpdoc.hhp" /> + </then> + </if> <echo>Indexing API manuals...</echo> <prado-api-index docdir="${build.doc.dir}/manual/HTMLSmartyConverter" todir="${build.doc.dir}/manual/HTMLSmartyConverter" /> @@ -187,11 +192,14 @@ </move> <move file="${build.doc.dir}/manual/CHMdefaultConverter/documentation.chm" todir="${build.src.dir}/docs" /> - <!-- - <exec command="tar czvf ${pkgname}.tar.gz ${pkgname}" dir="${build.base.dir}"/> - <move file="${build.base.dir}/${pkgname}.tar.gz" todir="${build.dist.dir}" /> - --> <echo>Generating compressed distribution files...</echo> + <if> + <equals arg1="${prado.winbuild}" arg2="false"/> + <then> + <exec command="tar czvf ${pkgname}.tar.gz ${pkgname}" dir="${build.base.dir}"/> + <move file="${build.base.dir}/${pkgname}.tar.gz" todir="${build.dist.dir}" /> + </then> + </if> <exec command="zip ${pkgname}.zip -r ${pkgname}" dir="${build.base.dir}" /> <move file="${build.base.dir}/${pkgname}.zip" todir="${build.dist.dir}" /> @@ -229,11 +237,14 @@ </target> <target name="snapshot" depends="rebuild"> - <!-- - <exec command="tar czvf ${pkgname}.tar.gz ${pkgname}" dir="${build.base.dir}"/> - <move file="${build.base.dir}/${pkgname}.tar.gz" todir="${build.dist.dir}" /> - --> <echo>Generating compressed distribution files...</echo> + <if> + <equals arg1="${prado.winbuild}" arg2="false"/> + <then> + <exec command="tar czvf ${pkgname}.tar.gz ${pkgname}" dir="${build.base.dir}"/> + <move file="${build.base.dir}/${pkgname}.tar.gz" todir="${build.dist.dir}" /> + </then> + </if> <exec command="zip ${pkgname}.zip -r ${pkgname}" dir="${build.base.dir}" /> <move file="${build.base.dir}/${pkgname}.zip" tofile="${build.snapshot.dir}/prado-latest.zip" /> <copy file="${build.src.dir}/HISTORY" tofile="${build.snapshot.dir}/changelog-latest.txt" /> diff --git a/buildscripts/phing/tasks/PradoVersionTask.php b/buildscripts/phing/tasks/PradoVersionTask.php index dfa0f578..911b68d4 100644 --- a/buildscripts/phing/tasks/PradoVersionTask.php +++ b/buildscripts/phing/tasks/PradoVersionTask.php @@ -11,6 +11,10 @@ class PradoVersionTask extends PropertyTask { $this->addProperty('prado.version',$this->getPradoVersion()); $this->addProperty('prado.revision',$this->getPradoRevision()); + if(substr(PHP_OS, 0, 3) == 'WIN') + $this->addProperty('prado.winbuild','true'); + else + $this->addProperty('prado.winbuild','false'); } /** |