source: LFS/lfs.xsl@ f0a31de

2.4 ablfs-more legacy new_features trunk
Last change on this file since f0a31de was f0a31de, checked in by Pierre Labastie <pierre@…>, 11 years ago

Add a sect2 template to lfs.xsl, so that it is possible to build
several packages on the same page

  • 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 select="sect2|
122 screen[not(@role) or
123 @role!='nodump']/userinput"/>
124 <xsl:if test="@id='ch-system-creatingdirs'">
125 <xsl:apply-templates
126 select="document('packageManager.xml')//sect1[
127 @id='ch-pkgmngt-creatingdirs'
128 ]//userinput"/>
129 </xsl:if>
130 <xsl:if test="@id='ch-system-createfiles'">
131 <xsl:apply-templates
132 select="document('packageManager.xml')//sect1[
133 @id='ch-pkgmngt-createfiles'
134 ]//userinput"/>
135 </xsl:if>
136 <xsl:if test="not(@id='ch-system-chroot') and
137 not(@id='ch-system-revisedchroot')">
138 <xsl:text>echo -e "\n\nTotalseconds: $SECONDS\n"&#xA;</xsl:text>
139 </xsl:if>
140 <xsl:text>exit&#xA;</xsl:text>
141 </exsl:document>
142 </xsl:if>
143 </xsl:template>
144
145
146
147
148
149
150
151
152
153
154
155
156 <xsl:template match="sect2">
157 <xsl:apply-templates
158 select=".//screen[not(@role) or
159 @role != 'nodump']/userinput[
160 @remap = 'pre' or
161 @remap = 'configure' or
162 @remap = 'make' or
163 @remap = 'test' and
164 not(current()/../@id='ch-tools-dejagnu')]"/>
165 <xsl:if
166 test="ancestor::chapter[@id != 'chapter-temporary-tools'] and
167 $pkgmngt = 'y' and
168 descendant::screen[not(@role) or
169 @role != 'nodump']/userinput[
170 @remap='install']">
171 <xsl:text>mkdir -pv $PKG_DEST/{boot,etc,lib,bin,sbin}
172mkdir -pv $PKG_DEST/usr/{lib,bin,sbin,include}
173mkdir -pv $PKG_DEST/usr/share/{doc,info,man}
174mkdir -pv $PKG_DEST/usr/share/man/man{1..8}
175ln -sv share/{man,doc,info} $PKG_DEST/usr
176case $(uname -m) in
177 x86_64) ln -sv lib $PKG_DEST/lib64 &amp;&amp; ln -sv lib $PKG_DEST/usr/lib64 ;;
178esac
179</xsl:text>
180 </xsl:if>
181 <xsl:if test="../@id = 'ch-system-glibc' and
182 $pkgmngt = 'y'">
183 <xsl:text>mkdir -pv $PKG_DEST/usr/include/{rpc,rpcsvc}
184</xsl:text>
185 </xsl:if>
186 <xsl:apply-templates
187 select=".//screen[not(@role) or
188 @role != 'nodump']/userinput[@remap = 'install']"/>
189 <xsl:if test="ancestor::chapter[@id != 'chapter-temporary-tools'] and
190 $pkgmngt = 'y' and
191 descendant::screen[not(@role) or
192 @role != 'nodump']/userinput[
193 @remap='install']">
194 <xsl:if test="../@id = 'ch-system-man-pages'">
195<!-- those files are provided by the shadow package -->
196 <xsl:text>rm -fv $PKG_DEST/usr/share/man/{man3/getspnam.3,man5/passwd.5}
197</xsl:text>
198 </xsl:if>
199 <xsl:text>rm -fv $PKG_DEST/{,usr/}lib64
200rm -fv $PKG_DEST/usr/{man,doc,info}
201for dir in $PKG_DEST/usr/share/man/man{1..8}; do
202 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
203done
204for dir in $PKG_DEST/usr/share/{doc,info,man}; do
205 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
206done
207for dir in $PKG_DEST/usr/{lib,bin,sbin,include}; do
208 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
209done
210for dir in $PKG_DEST/{boot,etc,lib,bin,sbin}; do
211 [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
212done
213packInstall
214rm -rf $PKG_DEST
215</xsl:text>
216 </xsl:if>
217 <xsl:if test="$testsuite='3' and
218 ../@id='ch-tools-glibc' and
219 @role='installation'">
220 <xsl:copy-of select="//userinput[@remap='locale-test']"/>
221 <xsl:text>&#xA;</xsl:text>
222 </xsl:if>
223 <xsl:if test="../@id='ch-system-glibc' and @role='installation'">
224 <xsl:choose>
225 <xsl:when test="$full-locale='y'">
226 <xsl:copy-of select="//userinput[@remap='locale-full']"/>
227 <xsl:text>&#xA;</xsl:text>
228 </xsl:when>
229 <xsl:otherwise>
230 <xsl:copy-of select="//userinput[@remap='locale-test']"/>
231 <xsl:text>&#xA;</xsl:text>
232 <xsl:if test="not(contains(string(//userinput[@remap='locale-test']),$lang)) and $lang!='C' and $lang!='POSIX'">
233 <xsl:text>if LOCALE=`grep "</xsl:text>
234 <xsl:value-of select="$lang"/>
235 <xsl:text>/" $PKGDIR/localedata/SUPPORTED`; then
236 CHARMAP=`echo $LOCALE | sed 's,[^/]*/\([^ ]*\) [\],\1,'`
237 INPUT=`echo $LOCALE | sed 's,[/.].*,,'`
238 LOCALE=`echo $LOCALE | sed 's,/.*,,'`
239 localedef -i $INPUT -f $CHARMAP $LOCALE
240fi
241</xsl:text>
242 </xsl:if>
243 </xsl:otherwise>
244 </xsl:choose>
245 </xsl:if>
246 <xsl:apply-templates
247 select=".//screen[
248 not(@role) or
249 @role != 'nodump'
250 ]/userinput[
251 not(@remap) or
252 @remap='adjust' or
253 @remap='test' and current()/../@id='ch-tools-dejagnu'
254 ]"/>
255 </xsl:template>
256
257 <xsl:template match="sect1" mode="pkgmngt">
258 <xsl:param name="dirname" select="chapter05"/>
259 <!-- The build order -->
260 <xsl:param name="order" select="062"/>
261<!-- The file names -->
262 <xsl:variable name="pi-file" select="processing-instruction('dbhtml')"/>
263 <xsl:variable name="pi-file-value" select="substring-after($pi-file,'filename=')"/>
264 <xsl:variable name="filename" select="substring-before(substring($pi-file-value,2),'.html')"/>
265 <!-- Creating dirs and files -->
266 <exsl:document href="{$dirname}/{$order}-{position()}-{$filename}" method="text">
267 <xsl:text>#!/bin/bash
268set +h
269set -e
270
271cd $PKGDIR
272</xsl:text>
273 <xsl:apply-templates
274 select=".//screen[not(@role) or @role != 'nodump']/userinput[@remap != 'adjust']"
275 mode="pkgmngt"/>
276 <xsl:if test="$dirname = 'chapter06'">
277 <xsl:text>packInstall
278rm -rf $PKG_DEST
279</xsl:text>
280 </xsl:if>
281 <xsl:apply-templates
282 select=".//screen[
283 not(@role) or
284 @role != 'nodump'
285 ]/userinput[
286 not(@remap) or
287 @remap='adjust'
288 ]"
289 mode="pkgmngt"/>
290 <xsl:text>
291echo -e "\n\nTotalseconds: $SECONDS\n"
292exit
293</xsl:text>
294 </exsl:document>
295 </xsl:template>
296
297 <xsl:template match="userinput" mode="pkgmngt">
298 <xsl:apply-templates/>
299 <xsl:text>&#xA;</xsl:text>
300 </xsl:template>
301
302 <xsl:template match="userinput">
303 <xsl:choose>
304 <!-- Copying the kernel config file -->
305 <xsl:when test="string() = 'make mrproper'">
306 <xsl:text>make mrproper&#xA;</xsl:text>
307 <xsl:if test="ancestor::sect1[@id='ch-bootable-kernel']">
308 <xsl:text>cp -v ../kernel-config .config&#xA;</xsl:text>
309 </xsl:if>
310 </xsl:when>
311<!-- test instructions -->
312 <xsl:when test="@remap = 'test'">
313 <xsl:choose>
314 <xsl:when test="$testsuite = '0'"/>
315 <xsl:when test="$testsuite = '1' and
316 not(ancestor::sect1[@id='ch-system-gcc']) and
317 not(ancestor::sect1[@id='ch-system-glibc']) and
318 not(ancestor::sect1[@id='ch-system-gmp']) and
319 not(ancestor::sect1[@id='ch-system-mpfr']) and
320 not(ancestor::sect1[@id='ch-system-binutils'])"/>
321 <xsl:when test="$testsuite = '2' and
322 ancestor::chapter[@id='chapter-temporary-tools']"/>
323 <xsl:otherwise>
324 <xsl:choose>
325 <xsl:when test="$bomb-testsuite = 'n'">
326 <xsl:choose>
327 <!-- special case for glibc -->
328 <xsl:when test="contains(string(), 'glibc-check-log')">
329 <xsl:value-of
330 select="substring-before(string(),'2&gt;&amp;1')"/>
331 <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
332 </xsl:when>
333 <!-- special case for procps-ng -->
334 <xsl:when test="contains(string(), 'pushd')">
335 <xsl:text>{ </xsl:text>
336 <xsl:apply-templates/>
337 <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
338 </xsl:when>
339 <xsl:when test="contains(string(), 'make -k')">
340 <xsl:apply-templates/>
341 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
342 </xsl:when>
343 <xsl:when test="contains(string(), 'make')">
344 <xsl:value-of select="substring-before(string(),'make')"/>
345 <xsl:text>make -k</xsl:text>
346 <xsl:value-of select="substring-after(string(),'make')"/>
347 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
348 </xsl:when>
349 <xsl:otherwise>
350 <xsl:apply-templates/>
351 <xsl:if test="not(contains(string(), '&gt;&gt;'))">
352 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
353 </xsl:if>
354 <xsl:text>&#xA;</xsl:text>
355 </xsl:otherwise>
356 </xsl:choose>
357 </xsl:when>
358 <xsl:otherwise>
359 <!-- bomb-testsuite != 'n'-->
360 <xsl:choose>
361 <!-- special case for glibc -->
362 <xsl:when test="contains(string(), 'glibc-check-log')">
363 <xsl:value-of
364 select="substring-before(string(),'2&gt;&amp;1')"/>
365 <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
366 </xsl:when>
367 <!-- special case for gmp -->
368 <xsl:when test="contains(string(), 'tee gmp-check-log')">
369 <xsl:text>(</xsl:text>
370 <xsl:apply-templates/>
371 <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 &amp;&amp; exit $PIPESTATUS)&#xA;</xsl:text>
372 </xsl:when>
373 <!-- special case for procps-ng -->
374 <xsl:when test="contains(string(), 'pushd')">
375 <xsl:text>{ </xsl:text>
376 <xsl:apply-templates/>
377 <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
378 </xsl:when>
379 <xsl:when test="contains(string(), 'make -k')">
380 <xsl:apply-templates/>
381 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
382 </xsl:when>
383 <xsl:otherwise>
384 <xsl:apply-templates/>
385 <xsl:if test="not(contains(string(), '&gt;&gt;'))">
386 <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
387 </xsl:if>
388 <xsl:text>&#xA;</xsl:text>
389 </xsl:otherwise>
390 </xsl:choose>
391 </xsl:otherwise>
392 </xsl:choose>
393 </xsl:otherwise>
394 </xsl:choose>
395 </xsl:when>
396<!-- End of test instructions -->
397 <!-- Don't stop on strip run -->
398 <xsl:when test="contains(string(),'strip ')">
399 <xsl:apply-templates/>
400 <xsl:text> || true&#xA;</xsl:text>
401 </xsl:when>
402<!-- Package management -->
403<!-- Add $PKG_DEST to installation commands -->
404 <xsl:when test="@remap='install' and
405 not(ancestor::chapter[
406 @id='chapter-temporary-tools'
407 ])">
408 <xsl:choose>
409 <xsl:when test="$pkgmngt='n'">
410 <xsl:choose>
411 <xsl:when test="contains(string(),'firmware,udev')">
412 <xsl:text>if [[ ! -d /lib/udev/devices ]] ; then&#xA;</xsl:text>
413 <xsl:apply-templates/>
414 <xsl:text>&#xA;fi&#xA;</xsl:text>
415 </xsl:when>
416 <xsl:otherwise>
417 <xsl:apply-templates/>
418 <xsl:text>&#xA;</xsl:text>
419 </xsl:otherwise>
420 </xsl:choose>
421 </xsl:when>
422 <xsl:otherwise><!--pkgmngt = 'y'-->
423 <xsl:choose>
424 <xsl:when test="./literal">
425 <xsl:call-template name="outputpkgdest">
426 <xsl:with-param name="outputstring"
427 select="text()[1]"/>
428 </xsl:call-template>
429 <xsl:apply-templates select="literal"/>
430 <xsl:call-template name="outputpkgdest">
431 <xsl:with-param name="outputstring"
432 select="text()[2]"/>
433 </xsl:call-template>
434 </xsl:when>
435 <xsl:otherwise>
436 <xsl:call-template name="outputpkgdest">
437 <xsl:with-param name="outputstring" select="string()"/>
438 </xsl:call-template>
439 </xsl:otherwise>
440 </xsl:choose>
441 </xsl:otherwise>
442 </xsl:choose>
443 </xsl:when>
444 <!-- End addition for package management -->
445 <!-- The rest of commands -->
446 <xsl:otherwise>
447 <xsl:apply-templates/>
448 <xsl:text>&#xA;</xsl:text>
449 </xsl:otherwise>
450 </xsl:choose>
451 </xsl:template>
452
453 <xsl:template match="replaceable">
454 <xsl:choose>
455 <xsl:when test="ancestor::sect1[@id='ch-system-glibc']">
456 <xsl:value-of select="$timezone"/>
457 </xsl:when>
458 <xsl:when test="ancestor::sect1[@id='ch-system-groff']">
459 <xsl:value-of select="$page"/>
460 </xsl:when>
461 <xsl:when test="contains(string(.),'&lt;ll&gt;_&lt;CC&gt;')">
462 <xsl:value-of select="$lang"/>
463 </xsl:when>
464 <xsl:otherwise>
465 <xsl:text>**EDITME</xsl:text>
466 <xsl:apply-templates/>
467 <xsl:text>EDITME**</xsl:text>
468 </xsl:otherwise>
469 </xsl:choose>
470 </xsl:template>
471
472 <xsl:template name="outputpkgdest">
473 <xsl:param name="outputstring" select="foo"/>
474 <xsl:choose>
475 <xsl:when test="contains($outputstring,'make ')">
476 <xsl:choose>
477 <xsl:when test="not(starts-with($outputstring,'make'))">
478 <xsl:call-template name="outputpkgdest">
479 <xsl:with-param name="outputstring"
480 select="substring-before($outputstring,'make')"/>
481 </xsl:call-template>
482 <xsl:call-template name="outputpkgdest">
483 <xsl:with-param
484 name="outputstring"
485 select="substring-after($outputstring,
486 substring-before($outputstring,'make'))"/>
487 </xsl:call-template>
488 </xsl:when>
489 <xsl:otherwise>
490 <xsl:choose>
491<!-- special cases (no DESTDIR) here -->
492 <xsl:when test="ancestor::sect1[@id='ch-system-glibc']">
493 <xsl:text>make install_root=$PKG_DEST -j1</xsl:text>
494 <xsl:value-of
495 select="substring-before(substring-after(string(),'make'),
496 'install')"/>
497 <xsl:text>install&#xA;</xsl:text>
498 </xsl:when>
499 <xsl:when test="ancestor::sect1[@id='ch-system-bzip2']">
500 <xsl:text>make PREFIX=$PKG_DEST/usr install&#xA;</xsl:text>
501 </xsl:when>
502 <xsl:when test="ancestor::sect1[@id='ch-system-sysklogd']">
503 <xsl:text>make BINDIR=$PKG_DEST/sbin prefix=$PKG_DEST install&#xA;</xsl:text>
504 </xsl:when>
505 <xsl:when test="ancestor::sect1[@id='ch-system-iproute2']">
506 <xsl:text>make DESTDIR=$PKG_DEST</xsl:text>
507 <xsl:value-of
508 select="substring-before(substring-after(string(),'DESTDIR='),
509 'install')"/>
510 <xsl:text>install&#xA;</xsl:text>
511 </xsl:when>
512 <xsl:when test="ancestor::sect1[@id='ch-system-sysvinit']">
513 <xsl:text>make ROOT=$PKG_DEST</xsl:text>
514 <xsl:value-of
515 select="substring-before(substring-after(string(),'make'),
516 'install')"/>
517 <xsl:text>install&#xA;</xsl:text>
518 </xsl:when>
519 <xsl:when test="ancestor::sect1[@id='ch-bootable-kernel']">
520 <xsl:text>make INSTALL_MOD_PATH=$PKG_DEST</xsl:text>
521 <xsl:value-of
522 select="substring-before(substring-after(string(),'make'),
523 'install')"/>
524 <xsl:text>install&#xA;</xsl:text>
525 </xsl:when>
526 <xsl:otherwise>
527 <xsl:text>make DESTDIR=$PKG_DEST</xsl:text>
528 <xsl:call-template name="outputpkgdest">
529 <xsl:with-param
530 name="outputstring"
531 select="substring-after($outputstring,'make')"/>
532 </xsl:call-template>
533 </xsl:otherwise>
534 </xsl:choose>
535 </xsl:otherwise>
536 </xsl:choose>
537 </xsl:when>
538 <xsl:otherwise> <!-- no make in this string -->
539 <xsl:choose>
540 <xsl:when test="contains($outputstring,'&gt;/') and
541 not(contains(substring-before($outputstring,'&gt;/'),' /'))">
542 <xsl:value-of select="substring-before($outputstring,'&gt;/')"/>
543 <xsl:text>&gt;$PKG_DEST/</xsl:text>
544 <xsl:call-template name="outputpkgdest">
545 <xsl:with-param name="outputstring" select="substring-after($outputstring,'&gt;/')"/>
546 </xsl:call-template>
547 </xsl:when>
548 <xsl:when test="contains($outputstring,' /')">
549 <xsl:value-of select="substring-before($outputstring,' /')"/>
550 <xsl:text> $PKG_DEST/</xsl:text>
551 <xsl:call-template name="outputpkgdest">
552 <xsl:with-param name="outputstring" select="substring-after($outputstring,' /')"/>
553 </xsl:call-template>
554 </xsl:when>
555 <xsl:otherwise>
556 <xsl:value-of select="$outputstring"/>
557 <xsl:text>&#xA;</xsl:text>
558 </xsl:otherwise>
559 </xsl:choose>
560 </xsl:otherwise>
561 </xsl:choose>
562 </xsl:template>
563</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.