Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    r05b955b ra6c57de  
    8080<!-- include the template for replaceable tags -->
    8181  <xsl:include href="process-replaceable.xsl"/>
     82
     83<!-- include the template for prompt tags -->
     84  <xsl:include href="process-prompt.xsl"/>
    8285
    8386<!--=================== Begin processing ========================-->
     
    303306      </xsl:when><!-- @role="package" -->
    304307
    305       <xsl:when test="@role = 'qt5-prefix' or @role = 'qt6-prefix'">
     308      <xsl:when test="@role = 'qt4-prefix' or @role = 'qt5-prefix'">
    306309        <xsl:apply-templates select=".//screen[./userinput]"/>
    307310      </xsl:when>
     
    386389      <xsl:when test="@role = 'configuration'">
    387390        <xsl:text>&#xA;</xsl:text>
    388         <xsl:apply-templates mode="config"
    389              select=".//screen[not(@role = 'nodump') and ./userinput]"/>
     391        <xsl:choose>
     392          <xsl:when test=".//screen/userinput/prompt">
     393            <xsl:call-template name="process-prompt">
     394              <xsl:with-param
     395                name="instructions"
     396                select=".//screen[not(@role = 'nodump') and ./userinput]"/>
     397              <xsl:with-param name="root-seen" select="false"/>
     398              <xsl:with-param name="prompt-seen" select="false"/>
     399            </xsl:call-template>
     400          </xsl:when>
     401          <xsl:otherwise>
     402            <xsl:apply-templates mode="config"
     403                 select=".//screen[not(@role = 'nodump') and ./userinput]"/>
     404          </xsl:otherwise>
     405        </xsl:choose>
    390406      </xsl:when><!-- @role="configuration" -->
    391407
     
    442458      </xsl:call-template>
    443459    </xsl:variable>
     460    <xsl:variable name="first_letter"
     461                  select="translate(substring($package,1,1),
     462                                    'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
     463                                    'abcdefghijklmnopqrstuvwxyz')"/>
    444464    <xsl:text>&#xA;</xsl:text>
    445465    <xsl:value-of select="$varname"/>
     
    457477    <xsl:value-of select="$varname"/>
    458478    <xsl:text>"
    459   else<!-- Download from upstream http -->
    460     wget -T 30 -t 5 "</xsl:text>
    461     <xsl:value-of select="$httpurl"/>
     479  else&#xA;</xsl:text>
     480    <!-- Download from upstream http -->
     481    <xsl:if test="string-length($httpurl) &gt; 10">
     482      <xsl:text>    wget -T 30 -t 5 "</xsl:text>
     483      <xsl:value-of select="$httpurl"/>
     484      <xsl:text>" ||&#xA;</xsl:text>
     485    </xsl:if>
     486    <!-- Download from upstream ftp -->
     487    <xsl:if test="string-length($ftpurl) &gt; 10">
     488      <xsl:text>    wget -T 30 -t 5 "</xsl:text>
     489      <xsl:value-of select="$ftpurl"/>
     490      <xsl:text>" ||&#xA;</xsl:text>
     491    </xsl:if>
     492    <!-- The FTP_SERVER mirror as a last resort -->
     493    <xsl:text>    wget -T 30 -t 5 "${JH_FTP_SERVER}svn/</xsl:text>
     494    <xsl:value-of select="$first_letter"/>
     495    <xsl:text>/$</xsl:text>
     496    <xsl:value-of select="$varname"/>
    462497    <xsl:text>"
    463498  fi
Note: See TracChangeset for help on using the changeset viewer.