Changeset 20337
- Timestamp:
- 2009-08-19T16:44:08+12:00 (15 years ago)
- Location:
- release-kits/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/core/ant-scripts/init.xml
r20331 r20337 129 129 <property name="app.version" value="${version}"/> 130 130 131 <!-- work out rk.os --> 132 <if> 133 <bool> 134 <or> 135 <equals arg1="${rk.os}" arg2="linux"/> 136 <equals arg1="${rk.os}" arg2="mac"/> 137 <equals arg1="${rk.os}" arg2="windows"/> 138 </or> 139 </bool> 140 <echo>Using user-specified value for rk.os: '${rk.os}'</echo> 141 142 <else><if> 143 <bool><equals arg1="${os.name}" arg2="Linux"/></bool> 144 <property name="rk.os" value="linux"/> 145 146 <else><if> 147 <bool><equals arg1="${os.name}" arg2="Mac OS X"/></bool> 148 <property name="rk.os" value="mac"/> 149 150 <else><if> 151 <bool> 152 <or> 153 <equals arg1="${os.name}" arg2="Windows 95"/> 154 <equals arg1="${os.name}" arg2="Windows 98"/> 155 <equals arg1="${os.name}" arg2="Windows 2000"/> 156 <equals arg1="${os.name}" arg2="Windows XP"/> 157 <equals arg1="${os.name}" arg2="Windows NT"/> 158 <equals arg1="${os.name}" arg2="Windows ME"/> 159 <equals arg1="${os.name}" arg2="Windows Vista"/> 160 </or> 161 </bool> 162 <property name="rk.os" value="windows"/> 163 164 <else> 165 <fail>Can't work out what to set rk.os to. Please report this to [email protected] . In the mean time, manually set rk.os to 'windows', 'mac', or 'linux' by reinvoking the release kit with, for example, '-Drk.os=windows'</fail> 166 167 </else></if></else></if></else></if></else></if> 168 169 <!-- set os.suffix --> 170 <if><bool><equals arg1="${rk.os}" arg2="mac"/></bool> 171 <property name="os.suffix" value="MacOS-intel"/> 172 </if> 173 <property name="os.suffix" value="${rk.os}"/> 174 131 175 <!-- show important properties --> 132 176 <echo level="info">Version (version): ${version}</echo> … … 135 179 <echo level="info">Current Month (current.month): ${current.month}</echo> 136 180 <echo level="info">Current Year (current.year): ${current.year}</echo> 181 <echo level="info">Operating System (rk.os): ${rk.os}</echo> 182 <echo level="info">Operating System Suffix (os.suffix): ${os.suffix}</echo> 137 183 138 184 </target> -
release-kits/shared/greenstone3/ant-scripts/rk3-targets.xml
r20206 r20337 191 191 </target> 192 192 193 <target name="copy-greenstone3-installer-files">194 195 <!-- the installer descriptors -->196 <copy todir="installer" file="${rk.home}/greenstone3/installer/antinstall-config.xml" overwrite="true"/>197 <copy todir="installer" file="${rk.home}/greenstone3/installer/build.xml" overwrite="true"/>198 199 </target>200 201 193 <target name="clean-user-manual"> 202 194 <copy file="distributions/web/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/> … … 213 205 <mkdir dir="components"/> 214 206 <zip destfile="components/${component}.comp" compress="false"> 215 216 217 207 <zipfileset dir="distributions/web"> 208 <patternset refid="greenstone3.${component}.component"/> 209 </zipfileset> 218 210 </zip> 219 211 </target> … … 234 226 </else></if></else></if> 235 227 </target> 236 237 <target name="greenstone3-compile"> 238 <antcall target="checkout-greenstone3" /> 239 <ant dir="compiled" inheritAll="false"> 240 <target name="prepare"/> 241 <propertyset refid="forward.properties"/> 242 </ant> 243 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall> 244 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="compiled/gli" /></antcall> 245 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="compiled/gs2build" /></antcall> 246 <ant dir="compiled" inheritAll="false"> 247 <target name="install"/> 248 <target name="dist-tidy"/> 249 <propertyset refid="forward.properties"/> 250 </ant> 251 <antcall target="insert-xml-parser"/> 252 <antcall target="insert-ant"/> 253 <antcall target="insert-documented-examples"/> 254 <antcall target="compile-uninstaller" /> <!-- from rk3-targets --> 255 <antcall target="prepare-documentation"/> <!-- from rk3-targets --> 256 </target> 257 258 <target name="greenstone3-create-distribution"> 259 <!-- create distribution --> 260 <antcall target="copy-compiled-to-dist"/> <!-- from init --> 261 <antcall target="insert-uninstaller"/> 262 <antcall target="clean-user-manual"/> 263 <antcall target="clean-uninstaller"/> 264 <antcall target="strip-svn-dirs"><param name="dir" value="distributions"/></antcall> <!-- from init --> 265 </target> 228 229 <target name="insert-windows-icon"> 230 <copy 231 file="${rk3.home}/greenstone3/icon/icon.ico" 232 tofile="compiled/resources/images/gs3.ico"/> 233 </target> 234 235 266 236 267 237
Note:
See TracChangeset
for help on using the changeset viewer.