source: LFS/lfs.xsl@ 960099f

ablfs
Last change on this file since 960099f was 960099f, checked in by Pierre Labastie <pierre@…>, 12 years ago

Merge trunk rev 3654

  • Property mode set to 100644
File size: 22.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<!-- $Id$ -->
4
5<xsl:stylesheet
6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 xmlns:exsl="http://exslt.org/common"
8 extension-element-prefixes="exsl"
9 version="1.0">
10
11 <!-- use package management ?
12 n = no, original behavior
13 y = yes, add PKG_DEST to scripts in install commands of chapter06-08
14 -->
15 <xsl:param name="pkgmngt" select="n"/>
16
17 <!-- Run test suites?
18 0 = none
19 1 = only chapter06 Glibc, GCC and Binutils testsuites
20 2 = all chapter06 testsuites
21 3 = all chapter05 and chapter06 testsuites
22 -->
23 <xsl:param name="testsuite" select="1"/>
24
25 <!-- Bomb on test suites failures?
26 n = no, I want to build the full system and review the logs
27 y = yes, bomb at the first test suite failure to can review the build dir
28 -->
29 <xsl:param name="bomb-testsuite" select="n"/>
30
31 <!-- Install vim-lang package? OBSOLETE should always be 'n'-->
32 <xsl:param name="vim-lang" select="n"/>
33
34 <!-- Time zone -->
35 <xsl:param name="timezone" select="GMT"/>
36
37 <!-- Page size -->
38 <xsl:param name="page" select="letter"/>
39
40 <!-- Locale settings -->
41 <xsl:param name="lang" select="C"/>
42
43 <!-- Install the whole set of locales -->
44 <xsl:param name='full-locale' select='n'/>
45
46 <xsl:template match="/">
47 <xsl:apply-templates select="//sect1"/>
48 </xsl:template>
49
50 <xsl:template match="sect1">
51 <xsl:if test="(../@id='chapter-temporary-tools' or
52 ../@id='chapter-building-system' or
53 ../@id='chapter-bootscripts' or
54 ../@id='chapter-bootable') and
55 count(descendant::screen/userinput) &gt; 0 and
56 count(descendant::screen/userinput) &gt;
57 count(descendant::screen[@role='nodump'])">
58 <!-- The dirs names -->
59 <xsl:variable name="pi-dir" select="../processing-instruction('dbhtml')"/>
60 <xsl:variable name="pi-dir-value" select="substring-after($pi-dir,'dir=')"/>
61 <xsl:variable name="quote-dir" select="substring($pi-dir-value,1,1)"/>
62 <xsl:variable name="dirname" select="substring-before(substring($pi-dir-value,2),$quote-dir)"/>
63 <!-- The file names -->
64 <xsl:variable name="pi-file" select="processing-instruction('dbhtml')"/>
65 <xsl:variable name="pi-file-value" select="substring-after($pi-file,'filename=')"/>
66 <xsl:variable name="filename" select="substring-before(substring($pi-file-value,2),'.html')"/>
67 <!-- The build order -->
68 <xsl:variable name="position" select="position()"/>
69 <xsl:variable name="order">
70 <xsl:choose>
71 <xsl:when test="string-length($position) = 1">
72 <xsl:text>00</xsl:text>
73 <xsl:value-of select="$position"/>
74 </xsl:when>
75 <xsl:when test="string-length($position) = 2">
76 <xsl:text>0</xsl:text>
77 <xsl:value-of select="$position"/>
78 </xsl:when>
79 <xsl:otherwise>
80 <xsl:value-of select="$position"/>
81 </xsl:otherwise>
82 </xsl:choose>
83 </xsl:variable>
84 <!-- Inclusion of package manager scriptlets -->
85 <xsl:if test="@id='ch-tools-stripping' and $pkgmngt='y'">
86 <xsl:apply-templates
87 select="document('packageManager.xml')//sect1[contains(@id,'ch-tools')]"
88 mode="pkgmngt">
89 <xsl:with-param name="order" select="$order"/>
90 <xsl:with-param name="dirname" select="$dirname"/>
91 </xsl:apply-templates>
92 </xsl:if>
93 <xsl:if test="@id='ch-system-strippingagain' and $pkgmngt='y'">
94 <xsl:apply-templates
95 select="document('packageManager.xml')//sect1[contains(@id,'ch-system')]"
96 mode="pkgmngt">
97 <xsl:with-param name="order" select="$order"/>
98 <xsl:with-param name="dirname" select="$dirname"/>
99 </xsl:apply-templates>
100 </xsl:if>
101 <!-- Creating dirs and files -->
102 <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
103 <xsl:choose>
104 <xsl:when test="@id='ch-system-creatingdirs' or
105 @id='ch-system-createfiles' or
106 @id='ch-system-strippingagain'">
107 <xsl:text>#!/tools/bin/bash&#xA;set +h&#xA;</xsl:text>
108 </xsl:when>
109 <xsl:otherwise>
110 <xsl:text>#!/bin/bash&#xA;set +h&#xA;</xsl:text>
111 </xsl:otherwise>
112 </xsl:choose>
113 <xsl:if test="not(@id='ch-tools-stripping') and
114 not(@id='ch-system-strippingagain')">
115 <xsl:text>set -e&#xA;</xsl:text>
116 </xsl:if>
117 <xsl:text>&#xA;</xsl:text>
118 <xsl:if test="sect2[@role='installation']">
119 <xsl:text>cd $PKGDIR&#xA;</xsl:text>
120 </xsl:if>
121 <xsl:apply-templates
122 select=".//screen[not(@role) or
123 @role != 'nodump']/userinput[
124 @remap = 'pre' or
125 @remap = 'configure' or
126 @remap = 'make' or
127 @remap = 'test' and
128 not(current()/@id='ch-tools-dejagnu')]"/>
129 <xsl:if
130 test="ancestor::chapter[@id != 'chapter-temporary-tools'] and
131 $pkgmngt = 'y' and
132 descendant::screen[not(@role) or
133 @role != 'nodump']/userinput[
134 @remap='install']">
135 <xsl:text>mkdir -pv $PKG_DEST/{boot,etc,lib,bin,sbin}
136mkdir -pv $PKG_DEST/usr/{lib,bin,sbin,include}
137mkdir -pv $PKG_DEST/usr/share/{doc,info,man}
138mkdir -pv $PKG_DEST/usr/share/man/man{1..8}
139ln -sv share/{man,doc,info} $PKG_DEST/usr
140case $(uname -m) in
141 x86_64) ln -sv lib $PKG_DEST/lib64 &amp;&amp; ln -sv lib $PKG_DEST/usr/lib64 ;;
142esac
143</xsl:text>
144 </xsl:if>
145 <xsl:if test="@id = 'ch-system-glibc' and
146 $pkgmngt = 'y'">
147 <xsl:text>mkdir -pv $PKG_DEST/usr/include/{rpc,rpcsvc}
148</xsl:text>
149 </xsl:if>
150 <xsl:apply-templates
151 select=".//screen[not(@role) or
152 @role != 'nodump']/userinput[@remap = 'install']"/>
153 <xsl:if test="ancestor::chapter[@id != 'chapter-temporary-tools'] and
154 $pkgmngt = 'y' and
155 descendant::screen[not(@role) or
156 @role != 'nodump']/userinput[
157 @remap='install']">
158 <xsl:if test="@id = 'ch-system-man-pages'">
159<!-- those files are provided by the shadow package -->
160 <xsl:text>rm -fv $PKG_DEST/usr/share/man/{man3/getspnam.3,man5/passwd.5}
161</xsl:text>
162 </xsl:if>
163 <xsl:text>rm -fv $PKG_DEST/{,usr/}lib64
164rm -fv $PKG_DEST/usr/{man,doc,info}
165for dir in $PKG_DEST/usr/share/man/man{1..8}; do
166 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
167done
168for dir in $PKG_DEST/usr/share/{doc,info,man}; do
169 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
170done
171for dir in $PKG_DEST/usr/{lib,bin,sbin,include}; do
172 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
173done
174for dir in $PKG_DEST/{boot,etc,lib,bin,sbin}; do
175 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
176done
177packInstall
178rm -rf $PKG_DEST
179</xsl:text>
180 </xsl:if>
181 <xsl:if test="$testsuite='3' and @id='ch-tools-glibc'">
182 <xsl:copy-of select="//userinput[@remap='locale-test']"/>
183 <xsl:text>&#xA;</xsl:text>
184 </xsl:if>
185 <xsl:if test="@id='ch-system-glibc'">
186 <xsl:choose>
187 <xsl:when test="$full-locale='y'">
188 <xsl:copy-of select="//userinput[@remap='locale-full']"/>
189 <xsl:text>&#xA;</xsl:text>
190 </xsl:when>
191 <xsl:otherwise>
192 <xsl:copy-of select="//userinput[@remap='locale-test']"/>
193 <xsl:text>&#xA;</xsl:text>
194 <xsl:if test="not(contains(string(//userinput[@remap='locale-test']),$lang)) and $lang!='C' and $lang!='POSIX'">
195 <xsl:text>if LOCALE=`grep "</xsl:text>
196 <xsl:value-of select="$lang"/>
197 <xsl:text>/" $PKGDIR/localedata/SUPPORTED`; then
198 CHARMAP=`echo $LOCALE | sed 's,[^/]*/\([^ ]*\) [\],\1,'`
199 INPUT=`echo $LOCALE | sed 's,[/.].*,,'`
200 LOCALE=`echo $LOCALE | sed 's,/.*,,'`
201 localedef -i $INPUT -f $CHARMAP $LOCALE
202fi
203</xsl:text>
204 </xsl:if>
205 </xsl:otherwise>
206 </xsl:choose>
207 </xsl:if>
208 <xsl:apply-templates
209 select=".//screen[
210 not(@role) or
211 @role != 'nodump'
212 ]/userinput[
213 not(@remap) or
214 @remap='adjust' or
215 @remap='test' and current()/@id='ch-tools-dejagnu'
216 ]"/>
217 <xsl:if test="@id='ch-system-creatingdirs'">
218 <xsl:apply-templates
219 select="document('packageManager.xml')//sect1[
220 @id='ch-pkgmngt-creatingdirs'
221 ]//userinput"/>
222 </xsl:if>
223 <xsl:if test="@id='ch-system-createfiles'">
224 <xsl:apply-templates
225 select="document('packageManager.xml')//sect1[
226 @id='ch-pkgmngt-createfiles'
227 ]//userinput"/>
228 </xsl:if>
229 <xsl:if test="not(@id='ch-system-chroot') and
230 not(@id='ch-system-revisedchroot')">
231 <xsl:text>echo -e "\n\nTotalseconds: $SECONDS\n"&#xA;</xsl:text>
232 </xsl:if>
233 <xsl:text>exit&#xA;</xsl:text>
234 </exsl:document>
235 </xsl:if>
236 </xsl:template>
237
238 <xsl:template match="sect1" mode="pkgmngt">
239 <xsl:param name="dirname" select="chapter05"/>
240 <!-- The build order -->
241 <xsl:param name="order" select="062"/>
242<!-- The file names -->
243 <xsl:variable name="pi-file" select="processing-instruction('dbhtml')"/>
244 <xsl:variable name="pi-file-value" select="substring-after($pi-file,'filename=')"/>
245 <xsl:variable name="filename" select="substring-before(substring($pi-file-value,2),'.html')"/>
246 <!-- Creating dirs and files -->
247 <xsl:if test="count(descendant::screen/userinput) &gt; 0 and
248 count(descendant::screen/userinput) &gt;
249 count(descendant::screen[@role='nodump'])">
250 <exsl:document href="{$dirname}/{$order}-{position()}-{$filename}"
251 method="text">
252 <xsl:text>#!/bin/bash
253set +h
254set -e
255
256cd $PKGDIR
257</xsl:text>
258 <xsl:apply-templates
259 select=".//screen[not(@role) or
260 @role != 'nodump']/userinput[@remap != 'adjust']"
261 mode="pkgmngt"/>
262 <xsl:if test="$dirname = 'chapter06'">
263 <xsl:text>packInstall
264rm -rf $PKG_DEST
265</xsl:text>
266 </xsl:if>
267 <xsl:apply-templates
268 select=".//screen[not(@role) or
269 @role != 'nodump'
270 ]/userinput[not(@remap) or
271 @remap='adjust'
272 ]"
273 mode="pkgmngt"/>
274 <xsl:text>
275echo -e "\n\nTotalseconds: $SECONDS\n"
276exit
277</xsl:text>
278 </exsl:document>
279 </xsl:if>
280 </xsl:template>
281
282 <xsl:template match="userinput" mode="pkgmngt">
283 <xsl:apply-templates/>
284 <xsl:text>&#xA;</xsl:text>
285 </xsl:template>
286
287 <xsl:template match="userinput">
288 <xsl:choose>
289 <!-- Copying the kernel config file -->
290 <xsl:when test="string() = 'make mrproper'">
291 <xsl:text>make mrproper&#xA;</xsl:text>
292 <xsl:if test="ancestor::sect1[@id='ch-bootable-kernel']">
293 <xsl:text>cp -v ../kernel-config .config&#xA;</xsl:text>
294 </xsl:if>
295 </xsl:when>
296<!-- test instructions -->
297 <xsl:when test="@remap = 'test'">
298 <xsl:choose>
299 <xsl:when test="$testsuite = '0'"/>
300 <xsl:when test="$testsuite = '1' and
301 not(ancestor::sect1[@id='ch-system-gcc']) and
302 not(ancestor::sect1[@id='ch-system-glibc']) and
303 not(ancestor::sect1[@id='ch-system-gmp']) and
304 not(ancestor::sect1[@id='ch-system-mpfr']) and
305 not(ancestor::sect1[@id='ch-system-binutils'])"/>
306 <xsl:when test="$testsuite = '2' and
307 ancestor::chapter[@id='chapter-temporary-tools']"/>
308 <xsl:otherwise>
309 <xsl:choose>
310 <xsl:when test="$bomb-testsuite = 'n'">
311 <xsl:choose>
312 <!-- special case for glibc -->
313 <xsl:when test="contains(string(), 'glibc-check-log')">
314 <xsl:value-of
315 select="substring-before(string(),'2&gt;&amp;1')"/>
316 <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
317 </xsl:when>
318 <!-- special case for procps-ng -->
319 <xsl:when test="contains(string(), 'pushd')">
320 <xsl:text>{ </xsl:text>
321 <xsl:apply-templates/>
322 <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
323 </xsl:when>
324 <xsl:when test="contains(string(), 'make -k')">
325 <xsl:apply-templates/>
326 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
327 </xsl:when>
328 <xsl:when test="contains(string(), 'make')">
329 <xsl:value-of select="substring-before(string(),'make')"/>
330 <xsl:text>make -k</xsl:text>
331 <xsl:value-of select="substring-after(string(),'make')"/>
332 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
333 </xsl:when>
334 <xsl:otherwise>
335 <xsl:apply-templates/>
336 <xsl:if test="not(contains(string(), '&gt;&gt;'))">
337 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
338 </xsl:if>
339 <xsl:text>&#xA;</xsl:text>
340 </xsl:otherwise>
341 </xsl:choose>
342 </xsl:when>
343 <xsl:otherwise>
344 <!-- bomb-testsuite != 'n'-->
345 <xsl:choose>
346 <!-- special case for glibc -->
347 <xsl:when test="contains(string(), 'glibc-check-log')">
348 <xsl:value-of
349 select="substring-before(string(),'2&gt;&amp;1')"/>
350 <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
351 </xsl:when>
352 <!-- special case for gmp -->
353 <xsl:when test="contains(string(), 'tee gmp-check-log')">
354 <xsl:text>(</xsl:text>
355 <xsl:apply-templates/>
356 <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 &amp;&amp; exit $PIPESTATUS)&#xA;</xsl:text>
357 </xsl:when>
358 <!-- special case for procps-ng -->
359 <xsl:when test="contains(string(), 'pushd')">
360 <xsl:text>{ </xsl:text>
361 <xsl:apply-templates/>
362 <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
363 </xsl:when>
364 <xsl:when test="contains(string(), 'make -k')">
365 <xsl:apply-templates/>
366 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
367 </xsl:when>
368 <xsl:otherwise>
369 <xsl:apply-templates/>
370 <xsl:if test="not(contains(string(), '&gt;&gt;'))">
371 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
372 </xsl:if>
373 <xsl:text>&#xA;</xsl:text>
374 </xsl:otherwise>
375 </xsl:choose>
376 </xsl:otherwise>
377 </xsl:choose>
378 </xsl:otherwise>
379 </xsl:choose>
380 </xsl:when>
381<!-- End of test instructions -->
382 <!-- Don't stop on strip run -->
383 <xsl:when test="contains(string(),'strip ')">
384 <xsl:apply-templates/>
385 <xsl:text> || true&#xA;</xsl:text>
386 </xsl:when>
387<!-- Package management -->
388<!-- Add $PKG_DEST to installation commands -->
389 <xsl:when test="@remap='install' and
390 not(ancestor::chapter[
391 @id='chapter-temporary-tools'
392 ])">
393 <xsl:choose>
394 <xsl:when test="$pkgmngt='n'">
395 <xsl:choose>
396 <xsl:when test="contains(string(),'firmware,udev')">
397 <xsl:text>if [[ ! -d /lib/udev/devices ]] ; then&#xA;</xsl:text>
398 <xsl:apply-templates/>
399 <xsl:text>&#xA;fi&#xA;</xsl:text>
400 </xsl:when>
401 <xsl:otherwise>
402 <xsl:apply-templates/>
403 <xsl:text>&#xA;</xsl:text>
404 </xsl:otherwise>
405 </xsl:choose>
406 </xsl:when>
407 <xsl:otherwise><!--pkgmngt = 'y'-->
408 <xsl:choose>
409 <xsl:when test="./literal">
410 <xsl:call-template name="outputpkgdest">
411 <xsl:with-param name="outputstring"
412 select="text()[1]"/>
413 </xsl:call-template>
414 <xsl:apply-templates select="literal"/>
415 <xsl:call-template name="outputpkgdest">
416 <xsl:with-param name="outputstring"
417 select="text()[2]"/>
418 </xsl:call-template>
419 </xsl:when>
420 <xsl:otherwise>
421 <xsl:call-template name="outputpkgdest">
422 <xsl:with-param name="outputstring" select="string()"/>
423 </xsl:call-template>
424 </xsl:otherwise>
425 </xsl:choose>
426 </xsl:otherwise>
427 </xsl:choose>
428 </xsl:when>
429 <!-- End addition for package management -->
430 <!-- The rest of commands -->
431 <xsl:otherwise>
432 <xsl:apply-templates/>
433 <xsl:text>&#xA;</xsl:text>
434 </xsl:otherwise>
435 </xsl:choose>
436 </xsl:template>
437
438 <xsl:template match="replaceable">
439 <xsl:choose>
440 <xsl:when test="ancestor::sect1[@id='ch-system-glibc']">
441 <xsl:value-of select="$timezone"/>
442 </xsl:when>
443 <xsl:when test="ancestor::sect1[@id='ch-system-groff']">
444 <xsl:value-of select="$page"/>
445 </xsl:when>
446 <xsl:when test="contains(string(.),'&lt;ll&gt;_&lt;CC&gt;')">
447 <xsl:value-of select="$lang"/>
448 </xsl:when>
449 <xsl:otherwise>
450 <xsl:text>**EDITME</xsl:text>
451 <xsl:apply-templates/>
452 <xsl:text>EDITME**</xsl:text>
453 </xsl:otherwise>
454 </xsl:choose>
455 </xsl:template>
456
457 <xsl:template name="outputpkgdest">
458 <xsl:param name="outputstring" select="foo"/>
459 <xsl:choose>
460 <xsl:when test="contains($outputstring,'make ')">
461 <xsl:choose>
462 <xsl:when test="not(starts-with($outputstring,'make'))">
463 <xsl:call-template name="outputpkgdest">
464 <xsl:with-param name="outputstring"
465 select="substring-before($outputstring,'make')"/>
466 </xsl:call-template>
467 <xsl:call-template name="outputpkgdest">
468 <xsl:with-param
469 name="outputstring"
470 select="substring-after($outputstring,
471 substring-before($outputstring,'make'))"/>
472 </xsl:call-template>
473 </xsl:when>
474 <xsl:otherwise>
475 <xsl:choose>
476<!-- special cases (no DESTDIR) here -->
477 <xsl:when test="ancestor::sect1[@id='ch-system-glibc']">
478 <xsl:text>make install_root=$PKG_DEST -j1</xsl:text>
479 <xsl:value-of
480 select="substring-before(substring-after(string(),'make'),
481 'install')"/>
482 <xsl:text>install&#xA;</xsl:text>
483 </xsl:when>
484 <xsl:when test="ancestor::sect1[@id='ch-system-bzip2']">
485 <xsl:text>make PREFIX=$PKG_DEST/usr install&#xA;</xsl:text>
486 </xsl:when>
487 <xsl:when test="ancestor::sect1[@id='ch-system-sysklogd']">
488 <xsl:text>make BINDIR=$PKG_DEST/sbin prefix=$PKG_DEST install&#xA;</xsl:text>
489 </xsl:when>
490 <xsl:when test="ancestor::sect1[@id='ch-system-iproute2']">
491 <xsl:text>make DESTDIR=$PKG_DEST</xsl:text>
492 <xsl:value-of
493 select="substring-before(substring-after(string(),'DESTDIR='),
494 'install')"/>
495 <xsl:text>install&#xA;</xsl:text>
496 </xsl:when>
497 <xsl:when test="ancestor::sect1[@id='ch-system-sysvinit']">
498 <xsl:text>make ROOT=$PKG_DEST</xsl:text>
499 <xsl:value-of
500 select="substring-before(substring-after(string(),'make'),
501 'install')"/>
502 <xsl:text>install&#xA;</xsl:text>
503 </xsl:when>
504 <xsl:when test="ancestor::sect1[@id='ch-bootable-kernel']">
505 <xsl:text>make INSTALL_MOD_PATH=$PKG_DEST</xsl:text>
506 <xsl:value-of
507 select="substring-before(substring-after(string(),'make'),
508 'install')"/>
509 <xsl:text>install&#xA;</xsl:text>
510 </xsl:when>
511 <xsl:otherwise>
512 <xsl:text>make DESTDIR=$PKG_DEST</xsl:text>
513 <xsl:call-template name="outputpkgdest">
514 <xsl:with-param
515 name="outputstring"
516 select="substring-after($outputstring,'make')"/>
517 </xsl:call-template>
518 </xsl:otherwise>
519 </xsl:choose>
520 </xsl:otherwise>
521 </xsl:choose>
522 </xsl:when>
523 <xsl:otherwise> <!-- no make in this string -->
524 <xsl:choose>
525 <xsl:when test="contains($outputstring,'&gt;/') and
526 not(contains(substring-before($outputstring,'&gt;/'),' /'))">
527 <xsl:value-of select="substring-before($outputstring,'&gt;/')"/>
528 <xsl:text>&gt;$PKG_DEST/</xsl:text>
529 <xsl:call-template name="outputpkgdest">
530 <xsl:with-param name="outputstring" select="substring-after($outputstring,'&gt;/')"/>
531 </xsl:call-template>
532 </xsl:when>
533 <xsl:when test="contains($outputstring,' /')">
534 <xsl:value-of select="substring-before($outputstring,' /')"/>
535 <xsl:text> $PKG_DEST/</xsl:text>
536 <xsl:call-template name="outputpkgdest">
537 <xsl:with-param name="outputstring" select="substring-after($outputstring,' /')"/>
538 </xsl:call-template>
539 </xsl:when>
540 <xsl:otherwise>
541 <xsl:value-of select="$outputstring"/>
542 <xsl:text>&#xA;</xsl:text>
543 </xsl:otherwise>
544 </xsl:choose>
545 </xsl:otherwise>
546 </xsl:choose>
547 </xsl:template>
548</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.