r2381 - jhalfs/branches/experimental/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Tue Mar 21 12:01:37 PST 2006


Author: manuel
Date: 2006-03-21 13:01:36 -0700 (Tue, 21 Mar 2006)
New Revision: 2381

Modified:
   jhalfs/branches/experimental/common/common-functions
Log:
Process only the materials/ files to create the packages and patches files.

Modified: jhalfs/branches/experimental/common/common-functions
===================================================================
--- jhalfs/branches/experimental/common/common-functions	2006-03-21 16:07:34 UTC (rev 2380)
+++ jhalfs/branches/experimental/common/common-functions	2006-03-21 20:01:36 UTC (rev 2381)
@@ -577,7 +577,7 @@
          xsltproc -xinclude  \
                   -o patcheslist_.wget \
                   patcheslist.xsl \
-                  $BOOK/${ARCH}-index.xml   
+                  $BOOK/materials/${ARCH}-chapter.xml
       ;;
     *)  return
   esac
@@ -601,7 +601,7 @@
 extract_commands() {         #
 #----------------------------#
   local saveIFS=$IFS
-  
+
   # Check for libxslt instead of just letting the script hit 'xsltproc' and fail.
   test `type -p xsltproc` || eval "echo \"This feature requires libxslt.\"
   exit 1"
@@ -666,7 +666,7 @@
   chmod -R +x $JHALFSDIR/${PROGNAME}-commands
 
   # Grab the patches and package names.
-  for i in patches packages ; do 
+  for i in patches packages ; do
     rm -f $i
   done
   #
@@ -689,16 +689,16 @@
         done
       }
       #################################
- 
+
       # We only want a list arch specific files..
       # Unfortunately this script produces URL's which must be converted to a std format
       echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packageslist_.wget file"
       xsltproc -xinclude  \
                -o packageslist_.wget \
                packageslist.xsl \
-               $BOOK/${ARCH}-index.xml   
+               $BOOK/materials/${ARCH}-chapter.xml
 
-      # This has the correct format but contains packages from every book  
+      # This has the correct format but contains packages from every book
       grep "\-version " $BOOK/packages.ent | sed -e 's@<!ENTITY @@' \
                                                  -e 's@">@"@' \
                                                  -e '/generic/d' > packages.tmp
@@ -707,7 +707,7 @@
       # Modify the 'internal field separator' to break on 'LF' only
       IFS=$'\x0A'
       for f in `cat packages.tmp`; do
-        IFS=$saveIFS  # Restore the system defaults	
+        IFS=$saveIFS  # Restore the system defaults
         LOC_add_packages_entry \
         `echo $f | sed -e 's/-version//' \
                        -e 's/-file.*//' \
@@ -715,14 +715,14 @@
      done
      echo " ...OK"
      ;;
-           
+
     *)
       echo -n "Creating <${PROGNAME}> specific packageslist_.wget file"
       grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
                                                -e 's@">@"@' \
                                                -e '/generic/d' >> packages
       echo " ...OK"
-      ;; 
+      ;;
   esac
 
   # Download the vim-lang package if it must be installed




More information about the alfs-log mailing list