Trying to fix Xorg7 build scripts.
This commit is contained in:
parent
a1f1969e3b
commit
b45f723403
1 changed files with 47 additions and 4 deletions
|
@ -19,10 +19,11 @@
|
||||||
<!--=================== Master chunks code ======================-->
|
<!--=================== Master chunks code ======================-->
|
||||||
|
|
||||||
<xsl:template match="sect1">
|
<xsl:template match="sect1">
|
||||||
<xsl:if test="@id != 'locale-issues' and
|
<xsl:if test="(count(descendant::screen/userinput) > 0 and
|
||||||
(count(descendant::screen/userinput) > 0 and
|
|
||||||
count(descendant::screen/userinput) >
|
count(descendant::screen/userinput) >
|
||||||
count(descendant::screen[@role='nodump']))">
|
count(descendant::screen[@role='nodump'])) and
|
||||||
|
@id != 'locale-issues' and @id != 'xorg7' and
|
||||||
|
@id != 'x-setup'">
|
||||||
|
|
||||||
<!-- The file names -->
|
<!-- The file names -->
|
||||||
<xsl:variable name="pi-file" select="processing-instruction('dbhtml')"/>
|
<xsl:variable name="pi-file" select="processing-instruction('dbhtml')"/>
|
||||||
|
@ -90,7 +91,10 @@
|
||||||
<xsl:text>#!/bin/sh
set -e

</xsl:text>
|
<xsl:text>#!/bin/sh
set -e

</xsl:text>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<!-- Package page -->
|
<!-- Package page -->
|
||||||
<xsl:when test="sect2[@role='package']">
|
<xsl:when test="sect2[@role='package'] and not(@id = 'xorg7-app' or
|
||||||
|
@id = 'xorg7-data' or @id = 'xorg7-driver' or
|
||||||
|
@id = 'xorg7-font' or @id = 'xorg7-lib' or
|
||||||
|
@id = 'xorg7-proto' or @id = 'xorg7-util')">
|
||||||
<!-- Variables -->
|
<!-- Variables -->
|
||||||
<xsl:text>SRC_ARCHIVE=$SRC_ARCHIVE
</xsl:text>
|
<xsl:text>SRC_ARCHIVE=$SRC_ARCHIVE
</xsl:text>
|
||||||
<xsl:text>FTP_SERVER=$FTP_SERVER

PACKAGE=</xsl:text>
|
<xsl:text>FTP_SERVER=$FTP_SERVER

PACKAGE=</xsl:text>
|
||||||
|
@ -107,6 +111,15 @@
|
||||||
<xsl:text>cd $SRC_DIR/$PKG_DIR
</xsl:text>
|
<xsl:text>cd $SRC_DIR/$PKG_DIR
</xsl:text>
|
||||||
<xsl:text>rm -rf $UNPACKDIR unpacked

</xsl:text>
|
<xsl:text>rm -rf $UNPACKDIR unpacked

</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<!-- Xorg7 pseudo-packages -->
|
||||||
|
<xsl:when test="contains(@id,'xorg7') and not(@id = 'xorg7-server')">
|
||||||
|
<xsl:text>SRC_DIR=$SRC_DIR
|
||||||
|
|
||||||
|
cd $SRC_DIR
|
||||||
|
mkdir -p xc
|
||||||
|
cd xc
</xsl:text>
|
||||||
|
<xsl:apply-templates select="sect2" mode="xorg7"/>
|
||||||
|
</xsl:when>
|
||||||
<!-- Non-package page -->
|
<!-- Non-package page -->
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:apply-templates select=".//screen"/>
|
<xsl:apply-templates select=".//screen"/>
|
||||||
|
@ -155,6 +168,32 @@ cd $UNPACKDIR
</xsl:text>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="sect2" mode="xorg7">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@role = 'package'"/>
|
||||||
|
<xsl:when test="not(@role)">
|
||||||
|
<xsl:apply-templates select=".//screen"/>
|
||||||
|
<xsl:text>WGET_LST=</xsl:text>
|
||||||
|
<xsl:apply-templates select=".//screen" mode="wget_lst"/>
|
||||||
|
<xsl:text>
</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="@role = 'installation'">
|
||||||
|
<xsl:text>for package in $(cat $WGET_LST) ; do
|
||||||
|
packagedir=$(echo $package | sed 's/.tar.bz2//')
|
||||||
|
tar -xf $package
|
||||||
|
cd $packagedir
</xsl:text>
|
||||||
|
<xsl:apply-templates select=".//screen | .//para/command"/>
|
||||||
|
<xsl:text>cd ..
|
||||||
|
rm -rf $packagedir
|
||||||
|
done
</xsl:text>
|
||||||
|
<xsl:if test="$sudo = 'y'">
|
||||||
|
<xsl:text>sudo </xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:text>ldconfig

</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!--==================== Download code =======================-->
|
<!--==================== Download code =======================-->
|
||||||
|
|
||||||
<xsl:template name="package_name">
|
<xsl:template name="package_name">
|
||||||
|
@ -360,6 +399,10 @@ cd $UNPACKDIR
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="screen" mode="wget_lst">
|
||||||
|
<xsl:value-of select="substring-after(string(),' -i ')"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="para/command">
|
<xsl:template match="para/command">
|
||||||
<xsl:if test="(contains(string(),'test') or
|
<xsl:if test="(contains(string(),'test') or
|
||||||
contains(string(),'check'))">
|
contains(string(),'check'))">
|
||||||
|
|
Reference in a new issue