[17423] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="mark2-create-components" default="create-components">
|
---|
| 3 |
|
---|
| 4 | <!-- create components from the distribution folder -->
|
---|
[17652] | 5 |
|
---|
| 6 | <!-- 1st level -->
|
---|
[17423] | 7 | <target name="create-components">
|
---|
[17652] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[19456] | 10 | <antcall target="produce-cd-components"/>
|
---|
[17423] | 11 | </target>
|
---|
[17652] | 12 |
|
---|
| 13 | <!-- 2nd level -->
|
---|
| 14 | <target name="prepare-components">
|
---|
| 15 | <antcall target="prepare-core-component" />
|
---|
[17663] | 16 | <antcall target="prepare-imagemagick-component" />
|
---|
| 17 | <antcall target="prepare-ghostscript-component" />
|
---|
[17652] | 18 | </target>
|
---|
[17423] | 19 |
|
---|
[17652] | 20 | <target name="compress-components">
|
---|
| 21 | <antcall target="compress-core-component" />
|
---|
[17663] | 22 | <antcall target="compress-imagemagick-component" />
|
---|
| 23 | <antcall target="compress-ghostscript-component" />
|
---|
[17652] | 24 | </target>
|
---|
| 25 |
|
---|
| 26 | <!-- 3rd level -->
|
---|
[17423] | 27 | <target name="create-core-component">
|
---|
| 28 | <antcall target="prepare-core-component" />
|
---|
| 29 | <antcall target="compress-core-component" />
|
---|
| 30 | </target>
|
---|
| 31 |
|
---|
| 32 | <target name="create-sourcecode-component">
|
---|
| 33 | <antcall target="prepare-sourcecode-component" />
|
---|
| 34 | <antcall target="compress-sourcecode-component" />
|
---|
| 35 | </target>
|
---|
| 36 |
|
---|
[17659] | 37 | <!-- core -->
|
---|
[17423] | 38 | <target name="prepare-core-component">
|
---|
[17453] | 39 |
|
---|
| 40 | <delete dir="components/tmp/core"/>
|
---|
[17423] | 41 | <mkdir dir="components/tmp/core"/>
|
---|
[17453] | 42 |
|
---|
[17423] | 43 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 44 | <fileset dir="distributions/web">
|
---|
| 45 | <include name="**/*"/>
|
---|
| 46 |
|
---|
[19456] | 47 | <!-- exclude imagemagick + ghostscript -->
|
---|
[17660] | 48 | <exclude name="bin/darwin/imagemagick"/>
|
---|
| 49 | <exclude name="bin/darwin/imagemagick/**/*"/>
|
---|
[17707] | 50 | <exclude name="bin/darwin/ghostscript"/>
|
---|
| 51 | <exclude name="bin/darwin/ghostscript/**/*"/>
|
---|
[17423] | 52 |
|
---|
| 53 | </fileset>
|
---|
| 54 | </copy>
|
---|
| 55 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
| 56 | </target>
|
---|
| 57 |
|
---|
| 58 | <target name="compress-core-component">
|
---|
| 59 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 60 | </target>
|
---|
[17659] | 61 |
|
---|
| 62 | <!-- imagemagick -->
|
---|
| 63 | <target name="prepare-imagemagick-component">
|
---|
| 64 |
|
---|
| 65 | <delete dir="components/tmp/imagemagick"/>
|
---|
| 66 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
| 67 |
|
---|
| 68 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
[17660] | 69 | <fileset dir="distributions/web/bin/darwin">
|
---|
[17659] | 70 | <include name="imagemagick/**/*"/>
|
---|
[17652] | 71 | </fileset>
|
---|
| 72 | </copy>
|
---|
[17659] | 73 |
|
---|
| 74 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
[17652] | 75 | </target>
|
---|
[17659] | 76 |
|
---|
| 77 | <target name="compress-imagemagick-component">
|
---|
| 78 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
[17652] | 79 | </target>
|
---|
[17707] | 80 |
|
---|
[17663] | 81 | <!-- ghostscript -->
|
---|
| 82 | <target name="prepare-ghostscript-component">
|
---|
| 83 |
|
---|
| 84 | <delete dir="components/tmp/ghostscript"/>
|
---|
| 85 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
| 86 |
|
---|
| 87 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
| 88 | <fileset dir="distributions/web/bin/darwin">
|
---|
| 89 | <include name="ghostscript/**/*"/>
|
---|
| 90 | </fileset>
|
---|
| 91 | </copy>
|
---|
| 92 |
|
---|
| 93 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
|
---|
| 94 | </target>
|
---|
| 95 |
|
---|
| 96 | <target name="compress-ghostscript-component">
|
---|
| 97 | <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
|
---|
| 98 | </target>
|
---|
| 99 |
|
---|
[19456] | 100 | <!--
|
---|
| 101 | cd components
|
---|
| 102 | produce components for cdrom distributions, to be picked up and used by cdrk2 release kit
|
---|
| 103 | split components into mac only files (mac) and general files (all)
|
---|
| 104 | -->
|
---|
| 105 | <target name="produce-cd-components">
|
---|
| 106 | <delete dir="components/tmp/cdrom"/>
|
---|
| 107 | <mkdir dir="components/tmp/cdrom"/>
|
---|
| 108 |
|
---|
| 109 | <!-- core -->
|
---|
| 110 | <mkdir dir="components/tmp/cdrom/core/all"/>
|
---|
| 111 | <mkdir dir="components/tmp/cdrom/core/mac"/>
|
---|
| 112 | <copy todir="components/tmp/cdrom/core/all" overwrite="true">
|
---|
| 113 | <fileset dir="components/tmp/core"/>
|
---|
| 114 | </copy>
|
---|
| 115 | <move todir="components/tmp/cdrom/core/mac" overwrite="true">
|
---|
| 116 | <fileset dir="components/tmp/cdrom/core/all">
|
---|
| 117 | <include name="bin/darwin"/>
|
---|
| 118 | <include name="bin/darwin/**/*"/>
|
---|
| 119 | <include name="bin/windows"/>
|
---|
| 120 | <include name="bin/windows/**/*"/>
|
---|
| 121 | <include name="apache-httpd/darwin"/>
|
---|
| 122 | <include name="apache-httpd/darwin/**/*"/>
|
---|
| 123 | <include name="*.sh"/>
|
---|
| 124 | <include name="*.csh"/>
|
---|
| 125 | <include name="*.bash"/>
|
---|
| 126 | </fileset>
|
---|
| 127 | </move>
|
---|
| 128 |
|
---|
| 129 | <!-- imagemagick (completely mac specific) -->
|
---|
| 130 | <mkdir dir="components/tmp/cdrom/imagemagick/mac"/>
|
---|
| 131 | <copy todir="components/tmp/cdrom/imagemagick/mac" overwrite="true">
|
---|
| 132 | <fileset dir="components/tmp/imagemagick"/>
|
---|
| 133 | </copy>
|
---|
| 134 |
|
---|
| 135 | <!-- ghostscript (completely mac specific) -->
|
---|
| 136 | <mkdir dir="components/tmp/cdrom/ghostscript/mac"/>
|
---|
| 137 | <copy todir="components/tmp/cdrom/ghostscript/mac" overwrite="true">
|
---|
| 138 | <fileset dir="components/tmp/ghostscript"/>
|
---|
| 139 | </copy>
|
---|
| 140 |
|
---|
| 141 | <!-- archive the cd components -->
|
---|
[19480] | 142 | <mkdir dir="products"/>
|
---|
[19456] | 143 | <tar destfile="products/cdrom-components-${version}-mac.tar.gz" basedir="components/tmp/cdrom" compression="gzip"/>
|
---|
| 144 |
|
---|
| 145 | </target>
|
---|
| 146 |
|
---|
| 147 |
|
---|
[17423] | 148 | </project>
|
---|