source: release-kits/lirk3/resources/mac-compile.xml@ 14985

Last change on this file since 14985 was 14982, checked in by oranfry, 15 years ago

initial import of LiRK3

File size: 21.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2
3<!--
4 ..........................................................
5 October 2007
6 Mac part of the Greenstone3 'release maker'
7 Oran Fry
8 ..........................................................
9-->
10
11<project name="gs3-mac-compile" default="help">
12
13 <!-- classpath -->
14 <path id="project.classpath">
15 <fileset dir="tasks">
16 <include name="**/*.jar"/>
17 </fileset>
18 <fileset dir="lib">
19 <include name="*.jar"/>
20 </fileset>
21 <pathelement path="tasks/orans"/>
22 </path>
23
24 <!-- svn root -->
25 <property name="svn.root" value="http://svn.greenstone.org"/>
26
27 <!-- self defined tasks -->
28 <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
29 <taskdef name="try" classname="ise.antelope.tasks.TryTask" classpathref="project.classpath"/>
30 <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" classpathref="project.classpath"/>
31 <taskdef name="setloglevel" classname="SetLogLevel" classpathref="project.classpath"/>
32 <typedef name="addressedcall" classname="TreeCallTarget" classpathref="project.classpath"/>
33 <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
34 <taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.SCP"/>
35 <taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.SSHExec" classpathref="project.classpath"/>
36
37
38 <!-- target relations
39 <typedef name="isafter" classname="IsAfter" classpathref="project.classpath"/>
40 <typedef name="isdescendantof" classname="IsDescendantOf" classpathref="project.classpath"/>
41 <typedef name="isbetweenyandroot" classname="IsBetweenYAndRoot" classpathref="project.classpath"/> -->
42
43
44
45
46 <!-- stuff to do before all tasks -->
47 <target name="init">
48
49 <echo level="info">CHECKING PRE-CONDITIONS</echo>
50 <echo level="info"/>
51
52 <!-- version number -->
53 <echo level="info">Checking if version number is set...</echo>
54 <if>
55 <bool>
56 <not><isset property="version"/></not>
57 </bool>
58 <echo level="error">No, not set</echo>
59 <echo level="error">Please specify a version number on the command line.</echo>
60 <echo level="error">E.g., ant -Dversion=3.03 create-release</echo>
61 <echo level="error">or, ant -Dversion=trunk create-release</echo>
62 <fail>Version number not set</fail>
63 </if>
64 <echo level="info">Version number: ${version}</echo>
65 <property name="app.version" value="${version}"/>
66 <echo level="info"/>
67
68 <!-- where to put the release -->
69 <echo level="info">Determining where to put the release...</echo>
70 <if>
71 <bool>
72 <or>
73 <not><isset property="release.dir"/></not>
74 <not><isset property="mac.release.dir"/></not>
75 <not><isset property="windows.release.dir"/></not>
76 </or>
77
78 </bool>
79 <echo level="error">No release directory specified.</echo>
80 <echo level="error">Please specify release directory on the command line.</echo>
81 <echo level="error">E.g., ant -Drelease.dir=/research/me/releases/3.03 -Dmac.release.dir=/Users/me/releases/3.03 -Dwindows.release.dir=c:\research\me\releases\3.03 create-release</echo>
82 <fail>Release directorys not set</fail>
83 </if>
84 <echo level="info">Release directory: ${release.dir}</echo>
85 <echo level="info">Mac release directory: ${mac.release.dir}</echo>
86 <echo level="info">Windows release directory: ${windows.release.dir}</echo>
87 <echo level="info"/>
88
89 <!-- check start from -->
90 <echo level="info">Checking if we are resuming from a given target...</echo>
91 <if>
92 <bool>
93 <not><isset property="resume.from"/></not>
94 </bool>
95 <echo level="info">No, start from the beginning</echo>
96 <property name="resume.from" value="1"/>
97 <else>
98 <echo level="info">Yes, resuming from ${resume.from}</echo>
99 </else>
100 </if>
101 <echo level="info"/>
102
103 <!-- check resume mode-->
104 <echo level="info">Determining resume mode...</echo>
105 <if>
106 <bool>
107 <not><isset property="resume.mode"/></not>
108 </bool>
109 <echo level="info">Mode not set, defaulting to 'fallthrough'</echo>
110 <property name="resume.mode" value="fallthrough"/>
111 <else>
112 <echo level="info">Mode set to ${resume.mode}</echo>
113 <if>
114 <bool>
115 <and>
116 <not><equals arg1="${resume.mode}" arg2="descend"/></not>
117 <not><equals arg1="${resume.mode}" arg2="fallthrough"/></not>
118 </and>
119 </bool>
120 <echo level="error">You have not specified a valid resume mode.</echo>
121 <echo level="error">Valid modes are 'fallthrough' and 'descend'.</echo>
122 <fail>You have not specified a valid resume mode.</fail>
123 </if>
124 </else>
125 </if>
126 <echo level="info"/>
127
128 <!-- check username and password -->
129 <echo level="info">Checking if username and password set...</echo>
130 <if>
131 <bool>
132 <or>
133 <not><isset property="username"/></not>
134 <not><isset property="password"/></not>
135 </or>
136 </bool>
137 <echo level="info">Not set</echo>
138 <fail>You have not specified a username and password for ssh</fail>
139 </if>
140 <echo level="info"/>
141
142 <!-- execute target code or just traverse tree -->
143 <echo level="info">Determining execute mode...</echo>
144 <if>
145 <bool>
146 <not><isset property="execute"/></not>
147 </bool>
148 <echo level="info">Execute not set, defaulting to 'true'</echo>
149 <property name="execute" value="true"/>
150 <else>
151 <echo level="info">Execute set to ${execute}</echo>
152 <if>
153 <bool>
154 <and>
155 <not><equals arg1="${execute}" arg2="true"/></not>
156 <not><equals arg1="${execute}" arg2="false"/></not>
157 </and>
158 </bool>
159 <echo level="error">You have not specified a valid value for execute.</echo>
160 <echo level="error">Valid values are 'true' and 'false'.</echo>
161 <fail>You have not specified a valid value for execute.</fail>
162 </if>
163 </else>
164 </if>
165
166 <echo level="info"/>
167
168
169 <!-- the trunk or a branch -->
170 <echo level="info">Determining the branch path...</echo>
171 <if>
172 <bool>
173 <equals arg1="trunk" arg2="${version}"/>
174 </bool>
175 <property name="branch.path" value="trunk"/>
176
177 <else>
178 <property name="branch.path" value="branches/${version}"/>
179 </else>
180 </if>
181 <echo level="info">Branch Path: ${branch.path}</echo>
182 <echo level="info"/>
183
184 <!-- check branches exist -->
185 <property name="svn.greenstone3" value="${svn.root}/greenstone3/${branch.path}"/>
186 <property name="svn.gli" value="${svn.root}/gli/${branch.path}"/>
187 <property name="svn.indexers" value="${svn.root}/indexers/${branch.path}"/>
188 <property name="svn.documentation" value="${svn.root}/documentation/${branch.path}"/>
189
190 <tempfile property="temp.file" destdir="${java.io.tmpdir}" prefix="delete" suffix=".tmp"/>
191
192 <!-- greenstone3 branch -->
193 <echo level="info">Checking that ${svn.greenstone3} exists...</echo>
194 <!-- try to put the html index of the location into the temp file -->
195 <setloglevel level="error"/>
196 <try>
197 <get src="${svn.greenstone3}" dest="${temp.file}"/>
198 <catch>
199 <echo level="error">No, it does not exist</echo>
200 <property name="svn.greenstone3.unavailable" value="true"/>
201 </catch>
202 </try>
203 <setloglevel level="info"/>
204 <if>
205 <bool><not><istrue value="${svn.greenstone3.unavailable}"/></not></bool>
206 <echo level="info">Yes, it exists</echo>
207 </if>
208
209 <!-- gli branch -->
210 <echo level="info">Checking that ${svn.gli} exists...</echo>
211 <!-- try to put the html index of the location into the temp file -->
212 <setloglevel level="error"/>
213 <try>
214 <get src="${svn.gli}" dest="${temp.file}"/>
215 <catch>
216 <echo level="error">No, does not exist</echo>
217 <property name="svn.gli.unavailable" value="true"/>
218 </catch>
219 </try>
220 <setloglevel level="info"/>
221 <if>
222 <bool><not><istrue value="${svn.gli.unavailable}"/></not></bool>
223 <echo level="info">Yes, it exists</echo>
224 </if>
225
226
227 <!-- indexers branch -->
228 <echo level="info">Checking that ${svn.indexers} exists...</echo>
229 <!-- try to put the html index of the location into the temp file -->
230 <setloglevel level="error"/>
231 <try>
232 <get src="${svn.indexers}" dest="${temp.file}"/>
233 <catch>
234 <echo level="error">No, it does not exist</echo>
235 <property name="svn.indexers.unavailable" value="true"/>
236 </catch>
237 </try>
238 <setloglevel level="info"/>
239 <if>
240 <bool><not><istrue value="${svn.indexers.unavailable}"/></not></bool>
241 <echo level="info">Yes, it exists</echo>
242 </if>
243
244 <!-- documentation branch -->
245 <echo level="info">Checking that ${svn.documentation} exists...</echo>
246 <!-- try to put the html index of the location into the temp file -->
247 <setloglevel level="error"/>
248 <try>
249 <get src="${svn.documentation}" dest="${temp.file}"/>
250 <catch>
251 <echo level="error">No, it does not exist</echo>
252 <property name="svn.documentation.unavailable" value="true"/>
253 </catch>
254 </try>
255 <setloglevel level="info"/>
256 <if>
257 <bool><not><istrue value="${svn.documentation.unavailable}"/></not></bool>
258 <echo level="info">Yes, it exists</echo>
259 </if>
260
261
262 <!-- clean up the temp file -->
263 <setloglevel level="error"/>
264 <delete file="${temp.file}"/>
265 <setloglevel level="info"/>
266
267
268 <!-- fail if some branches were missing -->
269 <if>
270 <bool>
271 <or>
272 <istrue value="${svn.greenstone3.unavailable}"/>
273 <istrue value="${svn.gli.unavailable}"/>
274 <istrue value="${svn.indexers.unavailable}"/>
275 <istrue value="${svn.documentation.unavailable}"/>
276 </or>
277 </bool>
278 <fail>Some branches do not exist, or you are unable to access them from where you are. Please review the list above and create any branches that are missing, or run this script from somewhere with access to the repository.</fail>
279 <else>
280 <echo level="info">All exist</echo>
281 </else>
282 </if>
283
284 </target>
285
286 <target name="help">
287
288 <echo level="info">Usage: ant -Dversion=VERSION_NUMBER -Drelease.dir=RELEASEDIR -Dusername=USERNAME -Dpassword=PASSWORD -Dmac.release.dir=OUTPUT_DIRECTORY [-Dresume.from=TARGET_ADDRESS] [-Dresume.mode=MODE] create-release</echo>
289 <echo level="info"/>
290
291 <echo level="info">This project creates releases of Greenstone3 from the subversion repository given a version number.</echo>
292 <echo level="info"/>
293
294 <echo level="info">Each target in this project's target tree has been given an address, like so:</echo>
295 <echo level="info"/>
296 <echo level="info">root</echo>
297 <echo level="info"> |-1</echo>
298 <echo level="info"> | |-1.1</echo>
299 <echo level="info"> | |-1.2</echo>
300 <echo level="info"> |</echo>
301 <echo level="info"> |-2</echo>
302 <echo level="info"> | |-2.1</echo>
303 <echo level="info"> | |-2.2</echo>
304 <echo level="info"> etc.</echo>
305
306 <echo level="info"/>
307
308
309 <echo level="info">PARAMETERS</echo>
310 <echo level="info"/>
311
312 <echo level="info">version=VERSION_NUMBER, where VERSION_NUMBER={x.xx|trunk}</echo>
313 <echo level="info"/>
314 <echo level="info">This project can either create a release from a greenstone3 branch, or from the development trunk.</echo>
315 <echo level="info">To create a branch release, specify the VERSION_NUMBER (e.g., 3.03), and ensure that the following</echo>
316 <echo level="info">branches exist in the repository:</echo>
317 <echo level="info"> greenstone3/branches/VERSION_NUMBER</echo>
318 <echo level="info"> gli/branches/VERSION_NUMBER</echo>
319 <echo level="info"> indexers/branches/VERSION_NUMBER</echo>
320 <echo level="info"> documentation/branches/VERSION_NUMBER</echo>
321 <echo level="info">To create a trunk release, specify 'trunk' as the version number.</echo>
322 <echo level="info">The project will use the trunk of greenstone3, gli, indexers and documentation for the release.</echo>
323 <echo level="info"/>
324 <echo level="info"/>
325
326 <echo level="info">release.dir=RELEASE_DIRECTORY</echo>
327 <echo level="info"/>
328 <echo level="info">Specifies the directory in the filesystem where the release files will be kept.</echo>
329 <echo level="info"/>
330 <echo level="info"/>
331
332 <echo level="info">resume.from=TARGET_ADDRESS, where TARGET_ADDRESS=x.y.z (e.g., 2.1.3)</echo>
333 <echo level="info"/>
334 <echo level="info">Allows you to specify a target address from which execution will resume.</echo>
335 <echo level="info">This is helpful for restarting the script after it has failed part-way through.</echo>
336 <echo level="info">By default, execution starts from the root target (create-release) and proceeds downwards.</echo>
337 <echo level="info">You can specify a different target to start from by setting the resume.from parameter.</echo>
338 <echo level="info"/>
339 <echo level="info"/>
340
341 <echo level="info">resume.mode=RESUME_MODE, where RESUME_MODE={fallthrough|descend}</echo>
342 <echo level="info"/>
343 <echo level="info">fallthrough (default): In fallthrough mode, execution proceeds downwards through the target tree</echo>
344 <echo level="info">1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.2 -> 3 -> 3.1 and so on.</echo>
345 <echo level="info">descend: In descend mode, execution descends a single branch of the target tree.</echo>
346 <echo level="info">For example, if resume.from was set to '2', execution would proceed thus:</echo>
347 <echo level="info">2 -> 2.1 -> 2.2 (exit)</echo>
348 <echo level="info">This is helpful when you want to debug a particular target, or fix some conditions to allow it to finish</echo>
349 <echo level="info">properly, and don't want to run the whole script from the start.</echo>
350
351
352 </target>
353
354
355
356
357 <!-- ADDRESSED TARGETS -->
358
359 <!-- root target -->
360 <target name="create-release" depends="init">
361 <echo>Creating Release ${version}</echo>
362 <addressedcall target="prep"/>
363 <addressedcall target="compile-binaries"/>
364 <addressedcall target="create-distribution"/>
365 <addressedcall target="compile-documentation"/>
366 <addressedcall target="create-installer-project"/>
367 <addressedcall target="build-installers"/>
368 </target>
369
370 <!-- first level targets -->
371 <target name="prep">
372 <addressedcall target="create-release-dir" />
373 </target>
374
375 <target name="compile-binaries">
376 <addressedcall target="linux" />
377 <addressedcall target="windows" />
378 <addressedcall target="mac" />
379 </target>
380
381 <target name="create-distribution">
382 <!-- create distribution -->
383 </target>
384
385 <target name="compile-documentation">
386 <!-- compile documentation -->
387 </target>
388
389 <target name="create-installer-project">
390 <!-- create installer project -->
391 </target>
392
393 <target name="build-installers">
394 <!-- build installers -->
395 </target>
396
397 <!-- second level targets -->
398
399 <target name="create-release-dir">
400 <if><bool><istrue value="${execute}"/></bool>
401 <mkdir dir="${release.dir}"/>
402 </if>
403 </target>
404
405 <target name="linux">
406 <!-- preparation -->
407 <addressedcall target="checkout-greenstone3" />
408 <addressedcall target="dist-prepare-unix" />
409 <addressedcall target="tweak-configure-scripts" />
410 <!-- update -->
411 <addressedcall target="dist-update-unix" />
412 <!-- configure -->
413 <addressedcall target="dist-configure-unix" />
414 <addressedcall target="tweak-makefiles" />
415 <!-- build -->
416 <addressedcall target="dist-build-unix" />
417 <addressedcall target="fix-wget" />
418 <addressedcall target="linux-strip-execs" />
419
420 <!-- documentation -->
421 <addressedcall target="prepare-documentation" />
422 </target>
423
424 <target name="mac">
425 <sshexec host="shuttle" username="${username}" password="${password}" exec="if [ ! -e ${mac.release.dir} ]; then mkdir ${mac.release.dir}; fi" />
426 <scp host="shuttle" username="${username}" password="${password}" destdir="${mac.release.dir}" src="${basedir}/resources" includes="mac-compile.xml" />
427 </target>
428
429
430 <target name="windows"/>
431
432 <!-- third level targets -->
433 <target name="checkout-greenstone3">
434 <if><bool><istrue value="${execute}"/></bool>
435 <svn>
436 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="${release.dir}/greenstone3"/>
437 </svn>
438 </if>
439 </target>
440
441 <target name="dist-prepare-unix">
442 <if><bool><istrue value="${execute}"/></bool>
443 <ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="prepare-unix" />
444 </if>
445 </target>
446 <target name="tweak-configure-scripts">
447 <addressedcall target="mgpp-add-static" />
448 <addressedcall target="mg-add-static" />
449 <addressedcall target="gs2buildextra-add-static" />
450 </target>
451
452 <target name="dist-update-unix">
453 <if><bool><istrue value="${execute}"/></bool>
454 <ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="update-unix" />
455 </if>
456 </target>
457
458 <target name="dist-configure-unix">
459 <if><bool><istrue value="${execute}"/></bool>
460 <exec dir="${release.dir}/greenstone3/gs2build/gs2build-extra" executable="autoconf" output="${release.dir}/greenstone3/gs2build/configure">
461 <arg line="configure.in"/>
462 </exec>
463 <chmod file="${release.dir}/greenstone3/gs2build/configure" perm="+x"/>
464 <ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="configure-unix" />
465 </if>
466 </target>
467
468 <target name="tweak-makefiles">
469 <addressedcall target="wv-add-static" />
470 <addressedcall target="xlhtml-add-static" />
471 <addressedcall target="ppthtml-add-static" />
472 <addressedcall target="rtftohtml-add-static" />
473 <addressedcall target="gdbm-add-static" />
474 </target>
475
476 <target name="dist-build-unix">
477 <if><bool><istrue value="${execute}"/></bool>
478 <ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="build-unix" />
479 </if>
480 </target>
481
482 <target name="fix-wget">
483 <if><bool><istrue value="${execute}"/></bool>
484 <!-- fix this !!! -->
485 <delete file="${release.dir}/greenstone3/gs2build/packages/wget/wget-1.9/src/wget"/>
486 </if>
487 </target>
488
489 <target name="linux-strip-execs">
490 <if><bool><istrue value="${execute}"/></bool>
491 <exec dir="${release.dir}/greenstone3/gs2build/bin/linux" executable="find">
492 <arg line="! -name . -exec strip {} &#59;"/>
493 </exec>
494 </if>
495 </target>
496
497 <target name="prepare-documentation">
498 <if><bool><istrue value="${execute}"/></bool>
499 <mkdir dir="${release.dir}/greenstone3/gsdl-manuals"/>
500 <svn>
501 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="${release.dir}/greenstone3/gsdl-manuals/manuals"/>
502 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="${release.dir}/greenstone3/gsdl-manuals/shared"/>
503 </svn>
504 <javac srcdir="${release.dir}/greenstone3/gsdl-manuals/shared"
505 destdir="${release.dir}/greenstone3/gsdl-manuals/shared"
506 debug="on">
507 <include name="*.java"/>
508 </javac>
509 <unzip src="${release.dir}/greenstone3/gsdl-manuals/shared/fop.zip" dest="${release.dir}/greenstone3/gsdl-manuals/shared"/>
510
511 <!-- classpath -->
512 <path id="documentation.compile.classpath">
513 <fileset dir="${release.dir}/greenstone3/gsdl-manuals">
514 <include name="**/*.jar"/>
515 </fileset>
516 <pathelement path="${release.dir}/greenstone3/gsdl-manuals/shared"/>
517 <pathelement path="${release.dir}/greenstone3/gsdl-manuals/manuals"/>
518 </path>
519
520 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="${release.dir}/greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml">
521 <arg value="${release.dir}/greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
522 <arg value="${release.dir}/greenstone3/gli/help/en/help.xml" />
523 <arg value="${release.dir}/greenstone3" />
524 </java>
525
526 <chmod perm="a+x" file="${release.dir}/greenstone3/gsdl-manuals/shared/fop/fop.sh"/>
527 <exec dir="${release.dir}/greenstone3/gsdl-manuals/manuals" executable="${release.dir}/greenstone3/gsdl-manuals/manuals/generate-pdf.sh">
528 <arg line="u en" />
529 </exec>
530
531 </if>
532 </target>
533
534
535
536 <!-- fourth level targets -->
537 <target name="mgpp-add-static">
538 <if><bool><istrue value="${execute}"/></bool>
539 <rsr file="${release.dir}/greenstone3/gs2build/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
540 <exec dir="${release.dir}/greenstone3/gs2build/indexers/mgpp" executable="autoconf" output="${release.dir}/greenstone3/gs2build/indexers/mgpp/configure">
541 <arg line="configure.in"/>
542 </exec>
543 </if>
544 </target>
545 <target name="mg-add-static">
546 <if><bool><istrue value="${execute}"/></bool>
547 <rsr file="${release.dir}/greenstone3/gs2build/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
548 <exec dir="${release.dir}/greenstone3/gs2build/indexers/mg" executable="autoconf" output="${release.dir}/greenstone3/gs2build/indexers/mg/configure">
549 <arg line="configure.in"/>
550 </exec>
551 </if>
552 </target>
553 <target name="gs2buildextra-add-static">
554 <if><bool><istrue value="${execute}"/></bool>
555 <rsr file="${release.dir}/greenstone3/gs2build/gs2build-extra/packages.configure" pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
556 <rsr file="${release.dir}/greenstone3/gs2build/gs2build-extra/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
557 </if>
558 </target>
559
560 <target name="wv-add-static">
561 <if><bool><istrue value="${execute}"/></bool>
562 <rsr file="${release.dir}/greenstone3/gs2build/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
563 </if>
564 </target>
565 <target name="xlhtml-add-static">
566 <if><bool><istrue value="${execute}"/></bool>
567 <rsr file="${release.dir}/greenstone3/gs2build/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
568 </if>
569 </target>
570 <target name="ppthtml-add-static">
571 <if><bool><istrue value="${execute}"/></bool>
572 <rsr file="${release.dir}/greenstone3/gs2build/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
573 </if>
574 </target>
575 <target name="rtftohtml-add-static">
576 <if><bool><istrue value="${execute}"/></bool>
577 <rsr file="${release.dir}/greenstone3/gs2build/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml.{2}EXEEXT.{1}" replacement="-o rtftohtml\$(EXEEXT) -static" />
578 </if>
579 </target>
580 <target name="gdbm-add-static">
581 <if><bool><istrue value="${execute}"/></bool>
582 <rsr file="${release.dir}/greenstone3/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
583 </if>
584 </target>
585
586</project>
Note: See TracBrowser for help on using the repository browser.