r2442 - jhalfs/branches/experimental/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Tue Mar 28 12:11:42 PST 2006


Author: manuel
Date: 2006-03-28 13:11:42 -0700 (Tue, 28 Mar 2006)
New Revision: 2442

Modified:
   jhalfs/branches/experimental/common/common-functions
Log:
Some text output and inline comments fixes.
Deleting temporal files used to create the packages and patches files.

Modified: jhalfs/branches/experimental/common/common-functions
===================================================================
--- jhalfs/branches/experimental/common/common-functions	2006-03-28 19:19:22 UTC (rev 2441)
+++ jhalfs/branches/experimental/common/common-functions	2006-03-28 20:11:42 UTC (rev 2442)
@@ -163,7 +163,7 @@
     from a previous HLFS build.
 
     Please format the partition mounted on \$BUILDDIR or set
-    a different build directory before running jhahlfs.
+    a different build directory before running jhalfs-X.
 ${OFF}
 ${DD_BORDER}
 -EOF-
@@ -183,7 +183,7 @@
 echo \"Could not find a way to download the ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF} sources.\" >&2
 echo \"Attempting to continue.\" >&2"
 
-HEADER="# This file is automatically generated by jhalfs
+HEADER="# This file is automatically generated by jhalfs-X
 # DO NOT EDIT THIS FILE MANUALLY
 #
 # Generated on `date \"+%F %X %Z\"`"
@@ -208,7 +208,7 @@
 
 
 #----------------------------------#
-wrt_unpack() {                     #
+wrt_unpack() {                     # Unpack and set 'ROOT' var
 #----------------------------------#
   local FILE=$1
 (
@@ -237,7 +237,7 @@
 
 
 #=============================#
-wrt_unpack3() {               # Unpack and set 'ROOT' var
+wrt_unpack3() {               #
 #=============================#
   local FILE=$1
 (
@@ -265,7 +265,7 @@
 
 
 #----------------------------------#
-wrt_run_as_su() {                  #
+wrt_run_as_su() {                  # header to log file, execute script, footer to log file
 #----------------------------------#
   local this_script=$1
   local file=$2
@@ -280,7 +280,7 @@
 
 
 #==================================#
-wrt_run_as_lfs() {                 # header to log file, execute script, footer to log file
+wrt_run_as_lfs() {                 #
 #==================================#
   local this_script=$1
   local file=$2
@@ -310,7 +310,7 @@
 
 
 #=============================#
-wrt_run_as_root2() {   # Some scripts must be run as root..
+wrt_run_as_root2() {          # Some scripts must be run as root..
 #=============================#
   local this_script=$1
   local file=$2
@@ -432,12 +432,12 @@
   if [ "$RUNMAKE" = "1" ] ; then
     # Test to make sure we're running the build as root
     if [ "$UID" != "0" ] ; then
-      echo "You must be logged in as root to successfully build LFS."
+      echo "You must be logged in as root to successfully build the system."
       exit 1
     fi
     # Build the system
     if [ -e $MKFILE ] ; then
-      echo -ne "Building the LFS system...\n"
+      echo -ne "Building the system...\n"
       cd $JHALFSDIR && make -f ${PROGNAME}-Makefile
       echo -ne "done\n"
     fi
@@ -457,7 +457,7 @@
     fi
     # Test to make sure that the build directory was populated by jhalfs
     if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then
-      echo "Looks like $BUILDDIR was not populated by a previous jhalfs run."
+      echo "Looks like $BUILDDIR was not populated by a previous jhalfs-X run."
       exit 1
     else
       # Clean the build directory
@@ -491,7 +491,7 @@
       *) echo "BOOK not defined in function <get_book>"
           exit 1 ;;
     esac
-    # Grab a fresh LFS book if it's missing, otherwise, update it from the
+    # Grab a fresh book if it's missing, otherwise, update it from the
     # repo. If we've already extracted the commands, move on to getting the
     # sources.
     if [ -d ${PROGNAME}-$LFSVRS ] ; then
@@ -512,11 +512,11 @@
       fi
     else
       case $LFSVRS in
-	development)
+        development)
            svn co $SVN/${svn_root}/trunk/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
-	alphabetical)
+        alphabetical)
            svn co $SVN/${svn_root}/branches/$LFSVRS/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
-	udev_update)
+        udev_update)
            svn co $SVN/LFS/branches/$LFSVRS/BOOK lfs-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
       esac
       echo -ne "done\n"
@@ -551,7 +551,7 @@
 
   case ${PROGNAME} in
     hlfs)
-         echo -n "Creating the ${L_arrow}${BOLD}HLFS${R_arrow} specific patcheslist_.wget file"
+         echo -n "Creating the HLFS ${L_arrow}${BOLD}$MODEL${R_arrow} specific patches file"
          xsltproc --nonet \
                   --xinclude \
                   --stringparam model $MODEL \
@@ -567,7 +567,7 @@
       ;;
 
     clfs)  # Pull out a list of arch specific patches
-         echo -n "Creating CLFS ${L_arrow}${BOLD}$ARCH${R_arrow} specific patcheslist_.wget file"
+         echo -n "Creating CLFS ${L_arrow}${BOLD}$ARCH${R_arrow} specific patches file"
          xsltproc -xinclude  \
                   -o patcheslist_.wget \
                   patcheslist.xsl \
@@ -587,6 +587,8 @@
                    -e 's/uclibc/uClibc/'`
   done
 
+  rm -f patcheslist_.wget
+
   echo " ...OK"
 }
 
@@ -626,7 +628,7 @@
                  -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
       ;;
     hlfs)
-        echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS architecture"
+        echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS libc implementation"
         xsltproc --nonet \
                  --xinclude \
                  --stringparam model $MODEL \
@@ -698,7 +700,7 @@
 
       # 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"
+      echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packages file"
       xsltproc -xinclude  \
                -o packageslist_.wget \
                packageslist.xsl \
@@ -719,11 +721,14 @@
                        -e 's/-file.*//' \
                        -e 's/"//g'`
      done
+
+     rm -f packageslist_.wget packages.tmp
+
      echo " ...OK"
      ;;
 
     hlfs)
-      echo -n "Creating <${PROGNAME}> specific packageslist_.wget file"
+      echo -n "Creating <${PROGNAME}> specific packages file"
       grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
                                                -e 's@">@"@' \
                                                -e '/generic/d' >> packages
@@ -731,7 +736,7 @@
       ;;
 
     lfs)
-      echo -n "Creating <${PROGNAME}> specific packageslist_.wget file"
+      echo -n "Creating <${PROGNAME}> specific packages file"
       grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
                                                -e 's@">@"@' \
                                                -e '/generic/d' >> packages
@@ -746,7 +751,7 @@
     echo `grep "vim" packages | sed 's at vim@&-lang@'` >> packages
   fi
 
-  # There is no useful patches.ent file so we will create one.
+  # Create the patches file
   case "${PROGNAME}" in
     hlfs)
       build_patches_file ;;
@@ -861,12 +866,12 @@
 
       VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
       case $PKG in
-	tcl)         FILE="$PKG$VRS-src.tar.bz2"  ;;
+        tcl)         FILE="$PKG$VRS-src.tar.bz2"  ;;
         vim-lang)    PKG="vim"
                      FILE="vim-$VRS-lang.tar.bz2" ;;
-      	udev-config) PKG="udev"
+        udev-config) PKG="udev"
                      FILE="$VRS"                  ;;
-      	*)           FILE="$PKG-$VRS.tar.bz2"     ;;
+        *)           FILE="$PKG-$VRS.tar.bz2"     ;;
       esac
       download $PKG $FILE
 




More information about the alfs-log mailing list