r2823 - jhalfs/trunk/BLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Jul 16 03:24:50 PDT 2006


Author: manuel
Date: 2006-07-16 04:24:50 -0600 (Sun, 16 Jul 2006)
New Revision: 2823

Removed:
   jhalfs/trunk/BLFS/blfs.xsl
   jhalfs/trunk/BLFS/config
   jhalfs/trunk/BLFS/master.sh
Log:
Removed obsolete BLFS files.

Deleted: jhalfs/trunk/BLFS/blfs.xsl
===================================================================
--- jhalfs/trunk/BLFS/blfs.xsl	2006-07-16 10:06:03 UTC (rev 2822)
+++ jhalfs/trunk/BLFS/blfs.xsl	2006-07-16 10:24:50 UTC (rev 2823)
@@ -1,192 +0,0 @@
-<?xml version="1.0"?>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:exsl="http://exslt.org/common"
-    extension-element-prefixes="exsl"
-    version="1.0">
-
-<!-- $Id$ -->
-
-<!-- XSLT stylesheet to create shell scripts from BLFS books. -->
-
-  <!-- Run optional test suites? -->
-  <xsl:param name="testsuite" select="0"/>
-
-  <!-- FTP/HTTP server -->
-  <xsl:param name="server">
-    ftp://anduin.linuxfromscratch.org/BLFS/conglomeration
-  </xsl:param>
-
-  <xsl:template match="/">
-    <xsl:apply-templates select="//sect1"/>
-  </xsl:template>
-
-  <xsl:template match="sect1">
-    <xsl:if test="count(descendant::screen/userinput) > 0 and
-      count(descendant::screen/userinput) > count(descendant::screen[@role='nodump'])">
-        <!-- The dirs names -->
-      <xsl:variable name="pi-dir" select="../../processing-instruction('dbhtml')"/>
-      <xsl:variable name="pi-dir-value" select="substring-after($pi-dir,'dir=')"/>
-      <xsl:variable name="quote-dir" select="substring($pi-dir-value,1,1)"/>
-      <xsl:variable name="dirname" select="substring-before(substring($pi-dir-value,2),$quote-dir)"/>
-        <!-- The file names -->
-      <xsl:variable name="pi-file" select="processing-instruction('dbhtml')"/>
-      <xsl:variable name="pi-file-value" select="substring-after($pi-file,'filename=')"/>
-      <xsl:variable name="filename" select="substring-before(substring($pi-file-value,2),'.html')"/>
-        <!-- Package variables -->
-      <xsl:param name="package" select="sect1info/keywordset/keyword[@role='package']"/>
-      <xsl:param name="ftpdir" select="sect1info/keywordset/keyword[@role='ftpdir']"/>
-        <!-- Creating dirs and files -->
-      <exsl:document href="{$dirname}/{$filename}" method="text">
-        <xsl:text>#!/bin/sh&#xA;set -e&#xA;&#xA;</xsl:text>
-        <xsl:apply-templates select="sect2 | screen">
-          <xsl:with-param name="package" select="$package"/>
-          <xsl:with-param name="ftpdir" select="$ftpdir"/>
-        </xsl:apply-templates>
-        <xsl:if test="sect2[@role='package']">
-          <xsl:text>cd ~/sources/</xsl:text>
-          <xsl:value-of select="$ftpdir"/>
-          <xsl:text>&#xA;rm -rf $UNPACKDIR&#xA;&#xA;</xsl:text>
-        </xsl:if>
-        <xsl:text>exit</xsl:text>
-      </exsl:document>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="sect2">
-    <xsl:param name="package" select="foo"/>
-    <xsl:param name="ftpdir" select="foo"/>
-    <xsl:choose>
-      <xsl:when test="@role = 'package'">
-        <xsl:apply-templates select="para"/>
-        <xsl:text>&#xA;</xsl:text>
-        <xsl:text>mkdir -p ~/sources/</xsl:text>
-        <xsl:value-of select="$ftpdir"/>
-        <xsl:text>&#xA;cd ~/sources/</xsl:text>
-        <xsl:value-of select="$ftpdir"/>
-        <xsl:text>&#xA;</xsl:text>
-        <xsl:apply-templates select="itemizedlist/listitem/para">
-          <xsl:with-param name="package" select="$package"/>
-          <xsl:with-param name="ftpdir" select="$ftpdir"/>
-        </xsl:apply-templates>
-        <xsl:text>&#xA;</xsl:text>
-      </xsl:when>
-      <xsl:when test="@role = 'installation'">
-        <xsl:text>tar -xvf </xsl:text>
-        <xsl:value-of select="$package"/>
-        <xsl:text>.* > /tmp/unpacked&#xA;</xsl:text>
-        <xsl:text>UNPACKDIR=`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'`&#xA;</xsl:text>
-        <xsl:text>cd $UNPACKDIR&#xA;</xsl:text>
-        <xsl:apply-templates select=".//screen | .//para/command"/>
-        <xsl:text>&#xA;</xsl:text>
-      </xsl:when>
-      <xsl:when test="@role = 'configuration'">
-        <xsl:apply-templates select=".//screen"/>
-        <xsl:text>&#xA;</xsl:text>
-      </xsl:when>
-      <xsl:otherwise/>
-    </xsl:choose>
-  </xsl:template>
-
-  <xsl:template match="para">
-    <xsl:choose>
-     <xsl:when test="@role = 'required'">
-       <xsl:text># REQUIRED: </xsl:text>
-       <xsl:apply-templates select="xref"/>
-       <xsl:text>&#xA;</xsl:text>
-     </xsl:when>
-     <xsl:when test="@role = 'recommended'">
-       <xsl:text># RECOMMENDED: </xsl:text>
-       <xsl:apply-templates select="xref"/>
-       <xsl:text>&#xA;</xsl:text>
-     </xsl:when>
-     <xsl:when test="@role = 'optional'">
-       <xsl:text># OPTIONAL: </xsl:text>
-       <xsl:apply-templates select="xref"/>
-       <xsl:text>&#xA;</xsl:text>
-     </xsl:when>
-     <xsl:otherwise/>
-    </xsl:choose>
-  </xsl:template>
-
-  <xsl:template match="xref">
-    <xsl:value-of select="@linkend"/>
-    <xsl:text>&#x20;&#x20;</xsl:text>
-  </xsl:template>
-
-  <xsl:template match="itemizedlist/listitem/para">
-    <xsl:param name="package" select="foo"/>
-    <xsl:param name="ftpdir" select="foo"/>
-    <xsl:choose>
-      <xsl:when test="contains(string(),'HTTP')">
-        <xsl:text>wget </xsl:text>
-        <xsl:value-of select="ulink/@url"/>
-        <xsl:text> || \&#xA;</xsl:text>
-      </xsl:when>
-      <xsl:when test="contains(string(),'FTP')">
-        <xsl:text>wget </xsl:text>
-        <xsl:value-of select="ulink/@url"/>
-        <xsl:text> || \&#xA;</xsl:text>
-      </xsl:when>
-      <xsl:when test="contains(string(),'MD5')">
-        <xsl:text>wget </xsl:text>
-        <xsl:value-of select="$server"/>
-        <xsl:text>/</xsl:text>
-        <xsl:value-of select="$ftpdir"/>
-        <xsl:text>/</xsl:text>
-        <xsl:value-of select="$package"/>
-        <xsl:text>.bz2&#xA;</xsl:text>
-          <!-- Commented out due that we don't know where the package
-          will be dowloaded from.
-        <xsl:text>echo "</xsl:text>
-        <xsl:value-of select="substring-after(string(),'sum: ')"/>
-        <xsl:text>&#x20;&#x20;</xsl:text>
-        <xsl:value-of select="$package"/>
-        <xsl:text>" | md5sum -c -&#xA;</xsl:text>-->
-      </xsl:when>
-      <xsl:when test="contains(string(),'patch')">
-        <xsl:text>wget </xsl:text>
-        <xsl:value-of select="ulink/@url"/>
-        <xsl:text>&#xA;</xsl:text>
-      </xsl:when>
-      <xsl:otherwise/>
-    </xsl:choose>
-  </xsl:template>
-
-  <xsl:template match="screen">
-    <xsl:if test="child::* = userinput">
-      <xsl:choose>
-        <xsl:when test="@role = 'nodump'"/>
-        <xsl:otherwise>
-          <xsl:if test="@role = 'root'">
-            <xsl:text>sudo </xsl:text>
-          </xsl:if>
-          <xsl:apply-templates select="userinput" mode="screen"/>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="para/command">
-    <xsl:if test="$testsuite != '0' and
-            (contains(string(),'test') or
-            contains(string(),'check'))">
-      <xsl:value-of select="substring-before(string(),'make')"/>
-      <xsl:text>make -k</xsl:text>
-      <xsl:value-of select="substring-after(string(),'make')"/>
-      <xsl:text> || true&#xA;</xsl:text>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="userinput" mode="screen">
-    <xsl:apply-templates/>
-    <xsl:text>&#xA;</xsl:text>
-  </xsl:template>
-
-  <xsl:template match="replaceable">
-    <xsl:text>**EDITME</xsl:text>
-    <xsl:apply-templates/>
-    <xsl:text>EDITME**</xsl:text>
-  </xsl:template>
-
-</xsl:stylesheet>

Deleted: jhalfs/trunk/BLFS/config
===================================================================
--- jhalfs/trunk/BLFS/config	2006-07-16 10:06:03 UTC (rev 2822)
+++ jhalfs/trunk/BLFS/config	2006-07-16 10:24:50 UTC (rev 2823)
@@ -1,33 +0,0 @@
-#####
-#
-# Configuration file for the blfs module
-#
-# $Id$
-#
-#####
-declare -r FTP=ftp://ftp.linuxfromscratch.org/pub/blfs/conglomeration
-
-#--- Book's sources directory
-# If you have previously checked out the book from the repository
-BOOK=
-
-#--- Book version
-LFSVRS=development
-
-#--- FTP/HTTP mirror used as fallback (full path)
-SERVER=ftp://anduin.linuxfromscratch.org/BLFS/conglomeration
-
-#--- Dependencies 0(required)/1(recommended)/2(optional)
-DEPEND=1
-
-#--- Run test suites  0(no)/1(yes)
-TEST=0
-
-
-#==== INTERNAL VARIABLES ====
-# Don't edit it unless you know what you are doing
-
-#--- Default stylesheet
-   XSL=blfs.xsl
-MKFILE=$JHALFSDIR/Makefile
-

Deleted: jhalfs/trunk/BLFS/master.sh
===================================================================
--- jhalfs/trunk/BLFS/master.sh	2006-07-16 10:06:03 UTC (rev 2822)
+++ jhalfs/trunk/BLFS/master.sh	2006-07-16 10:24:50 UTC (rev 2823)
@@ -1,105 +0,0 @@
-#!/bin/sh
-
-# $Id$
-
-#----------------------------#
-build_Makefile() {
-#----------------------------#
-  echo -n "Creating Makefile... "
-  cd $JHALFSDIR/${PROGNAME}-commands
-
-  # Start with a clean Makefile file
-  >$MKFILE
-
-
-  # Add a header, some variables and include the function file
-  # to the top of the real Makefile.
-(
-    cat << EOF
-$HEADER
-
-include makefile-functions
-
-EOF
-) > $MKFILE
-
-  # Drop in a dummy target 'all:'.
-(
-    cat << EOF
-all:
-	@echo -e "\nThere is no default target predefined"
-	@echo -e "You must to tell what package(s) you want to install"
-	@echo -e "or edit the \"all\" Makefile target to create your own"
-	@echo -e "defualt target.\n"
-	@exit
-EOF
-) >> $MKFILE
-
-  # Bring over the build targets.
-  for file in */* ; do
-    # Keep the script file name
-    case $file in
-      gnome/config )
-        this_script=config-gnome
-        ;;
-      gnome/pre-install-config )
-        this_script=pre-intall-config-gnome
-        ;;
-      kde/config )
-        this_script=config-kde
-        ;;
-      kde/pre-install-config )
-        this_script=pre-intall-config-kde
-        ;;
-      * )
-        this_script=`basename $file`
-        ;;
-    esac
-
-    # Dump the package dependencies.
-    REQUIRED=`grep "REQUIRED" $file | sed 's/# REQUIRED://' | tr -d '\n'`
-    if [ "$DEPEND" != "0" ] ; then
-      RECOMMENDED=`grep "RECOMMENDED" $file | sed 's/# RECOMMENDED://' | tr -d '\n'`
-    fi
-    if [ "$DEPEND" = "2" ] ; then
-      OPTIONAL=`grep "OPTIONAL" $file | sed 's/# OPTIONAL://' | tr -d '\n'`
-    fi
-
-    #--------------------------------------------------------------------#
-    #         >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<<          #
-    #--------------------------------------------------------------------#
-    #
-    # Drop in the name of the target on a new line plus its dependencies
-    # and call the echo_message function.
-(
-    cat << EOF
-
-$this_script:  $REQUIRED $RECOMMENDED $OPTIONAL
-	@\$(call echo_message, Building)
-EOF
-) >> $MKFILE
-
-    # Insert date and disk usage at the top of the log file, the script run
-    # and date and disk usage again at the bottom of the log file.
-(
-    cat << EOF
-	@echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=logs/* /\`\n" >logs/$this_script && \\
-	$JHALFSDIR/${PROGNAME}-commands/$file >>logs/$this_script 2>&1 && \\
-	echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=logs/* /\`\n" >>logs/$this_script
-EOF
-) >> $MKFILE
-
-    # Include a touch of the target name so make can check
-    # if it's already been made.
-    echo -e '\t at touch $@' >> $MKFILE
-    #
-    #--------------------------------------------------------------------#
-    #              >>>>>>>> END OF Makefile ENTRY <<<<<<<<               #
-    #--------------------------------------------------------------------#
-
-  done
-  echo -ne "done\n"
-}
-
-
-




More information about the alfs-log mailing list