Changeset 60b56fd


Ignore:
Timestamp:
03/28/2006 08:11:42 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
64cc345
Parents:
2db0869
Message:

Some text output and inline comments fixes.
Deleting temporal files used to create the packages and patches files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r2db0869 r60b56fd  
    164164
    165165    Please format the partition mounted on \$BUILDDIR or set
    166     a different build directory before running jhahlfs.
     166    a different build directory before running jhalfs-X.
    167167${OFF}
    168168${DD_BORDER}
     
    184184echo \"Attempting to continue.\" >&2"
    185185
    186 HEADER="# This file is automatically generated by jhalfs
     186HEADER="# This file is automatically generated by jhalfs-X
    187187# DO NOT EDIT THIS FILE MANUALLY
    188188#
     
    209209
    210210#----------------------------------#
    211 wrt_unpack() {                     #
     211wrt_unpack() {                     # Unpack and set 'ROOT' var
    212212#----------------------------------#
    213213  local FILE=$1
     
    238238
    239239#=============================#
    240 wrt_unpack3() {               # Unpack and set 'ROOT' var
     240wrt_unpack3() {               #
    241241#=============================#
    242242  local FILE=$1
     
    266266
    267267#----------------------------------#
    268 wrt_run_as_su() {                  #
     268wrt_run_as_su() {                  # header to log file, execute script, footer to log file
    269269#----------------------------------#
    270270  local this_script=$1
     
    281281
    282282#==================================#
    283 wrt_run_as_lfs() {                 # header to log file, execute script, footer to log file
     283wrt_run_as_lfs() {                 #
    284284#==================================#
    285285  local this_script=$1
     
    311311
    312312#=============================#
    313 wrt_run_as_root2() {   # Some scripts must be run as root..
     313wrt_run_as_root2() {          # Some scripts must be run as root..
    314314#=============================#
    315315  local this_script=$1
     
    433433    # Test to make sure we're running the build as root
    434434    if [ "$UID" != "0" ] ; then
    435       echo "You must be logged in as root to successfully build LFS."
     435      echo "You must be logged in as root to successfully build the system."
    436436      exit 1
    437437    fi
    438438    # Build the system
    439439    if [ -e $MKFILE ] ; then
    440       echo -ne "Building the LFS system...\n"
     440      echo -ne "Building the system...\n"
    441441      cd $JHALFSDIR && make -f ${PROGNAME}-Makefile
    442442      echo -ne "done\n"
     
    458458    # Test to make sure that the build directory was populated by jhalfs
    459459    if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then
    460       echo "Looks like $BUILDDIR was not populated by a previous jhalfs run."
     460      echo "Looks like $BUILDDIR was not populated by a previous jhalfs-X run."
    461461      exit 1
    462462    else
     
    492492          exit 1 ;;
    493493    esac
    494     # Grab a fresh LFS book if it's missing, otherwise, update it from the
     494    # Grab a fresh book if it's missing, otherwise, update it from the
    495495    # repo. If we've already extracted the commands, move on to getting the
    496496    # sources.
     
    513513    else
    514514      case $LFSVRS in
    515         development)
     515        development)
    516516           svn co $SVN/${svn_root}/trunk/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
    517         alphabetical)
     517        alphabetical)
    518518           svn co $SVN/${svn_root}/branches/$LFSVRS/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
    519         udev_update)
     519        udev_update)
    520520           svn co $SVN/LFS/branches/$LFSVRS/BOOK lfs-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
    521521      esac
     
    552552  case ${PROGNAME} in
    553553    hlfs)
    554          echo -n "Creating the ${L_arrow}${BOLD}HLFS${R_arrow} specific patcheslist_.wget file"
     554         echo -n "Creating the HLFS ${L_arrow}${BOLD}$MODEL${R_arrow} specific patches file"
    555555         xsltproc --nonet \
    556556                  --xinclude \
     
    568568
    569569    clfs)  # Pull out a list of arch specific patches
    570          echo -n "Creating CLFS ${L_arrow}${BOLD}$ARCH${R_arrow} specific patcheslist_.wget file"
     570         echo -n "Creating CLFS ${L_arrow}${BOLD}$ARCH${R_arrow} specific patches file"
    571571         xsltproc -xinclude  \
    572572                  -o patcheslist_.wget \
     
    587587                   -e 's/uclibc/uClibc/'`
    588588  done
     589
     590  rm -f patcheslist_.wget
    589591
    590592  echo " ...OK"
     
    627629      ;;
    628630    hlfs)
    629         echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS architecture"
     631        echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS libc implementation"
    630632        xsltproc --nonet \
    631633                 --xinclude \
     
    699701      # We only want a list arch specific files..
    700702      # Unfortunately this script produces URL's which must be converted to a std format
    701       echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packageslist_.wget file"
     703      echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packages file"
    702704      xsltproc -xinclude  \
    703705               -o packageslist_.wget \
     
    720722                       -e 's/"//g'`
    721723     done
     724
     725     rm -f packageslist_.wget packages.tmp
     726
    722727     echo " ...OK"
    723728     ;;
    724729
    725730    hlfs)
    726       echo -n "Creating <${PROGNAME}> specific packageslist_.wget file"
     731      echo -n "Creating <${PROGNAME}> specific packages file"
    727732      grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
    728733                                               -e 's@">@"@' \
     
    732737
    733738    lfs)
    734       echo -n "Creating <${PROGNAME}> specific packageslist_.wget file"
     739      echo -n "Creating <${PROGNAME}> specific packages file"
    735740      grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \
    736741                                               -e 's@">@"@' \
     
    747752  fi
    748753
    749   # There is no useful patches.ent file so we will create one.
     754  # Create the patches file
    750755  case "${PROGNAME}" in
    751756    hlfs)
     
    862867      VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
    863868      case $PKG in
    864         tcl)         FILE="$PKG$VRS-src.tar.bz2"  ;;
     869        tcl)         FILE="$PKG$VRS-src.tar.bz2"  ;;
    865870        vim-lang)    PKG="vim"
    866871                     FILE="vim-$VRS-lang.tar.bz2" ;;
    867         udev-config) PKG="udev"
     872        udev-config) PKG="udev"
    868873                     FILE="$VRS"                  ;;
    869         *)           FILE="$PKG-$VRS.tar.bz2"     ;;
     874        *)           FILE="$PKG-$VRS.tar.bz2"     ;;
    870875      esac
    871876      download $PKG $FILE
Note: See TracChangeset for help on using the changeset viewer.