Changeset 25b52e2 for common


Ignore:
Timestamp:
05/18/2006 06:44:10 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
f8615e5
Parents:
3a27393
Message:

Merged r2698 and r2699 from trunk.

Location:
common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r3a27393 r25b52e2  
    5454        use VER version of the book as the system to build.
    5555        Supported versions are: dev*, trunk, SVN
    56         These are aliases for the Development version of {C,H,B}LFS
     56        These are aliases for the Development version of {C,H}LFS
    5757
    5858${BOLD}  -D  --directory DIR${OFF}
     
    6969        Optimize [0-2]
    7070          0 = no optimization
    71           1 = optimize chapter06 only
    72           2 = optimize both chapter05 and chapter06
     71          1 = optimize final system only
     72          2 = optimize both temporary tools and final system
    7373        Edit common/opt_config{,.d/*} and common/opt_override as desired.
    7474
     
    8080          3 = all temporary tools and final system testsuites
    8181        In CLFS, 3 is an alias to 2
    82         In BLFS, 1, 2, and 3 are equivalents and means that the testsuites
    83         will be run.
    8482
    8583${BOLD}  -W, --working-copy DIR${OFF}
    8684        use the local working copy placed in DIR as the $(echo $PROGNAME | tr [a-z] [A-Z]) book
    87 -EOF-
    88 
    89 [[ ${PROGNAME} != "blfs" ]] &&
    90 cat <<- -EOF-
    9185
    9286${BOLD}  -C, --comparasion TYPE${OFF}
     
    142136-EOF-
    143137
    144 [[ ${PROGNAME} = "blfs" ]] &&
    145 cat <<- -EOF-
    146 
    147 ${BOLD}  --dependencies  0/1/2${OFF}
    148         add dependencies of type TYPE to the build tree.
    149         If not set, both required and recommended are used.
    150 
    151                   Possible values are:
    152         0 - required        only required dependecies are used
    153         1 - recommended     both required a recommended dependencies are used
    154         2 - optional        all dependencies are used
    155 -EOF-
    156 
    157138cat <<- -EOF-
    158139${DD_BORDER}
     
    195176help="${nl_}Try '$0 --help' for more information."
    196177
    197 
    198178exit_missing_arg="\
    199179echo \"Option '\$1' requires an argument\" >&2
    200180echo \"\$help\" >&2
    201181exit 1"
    202 
    203 no_dl_client="\
    204 echo \"Could not find a way to download the ${BOLD}$(echo $PROGNAME | tr [a-z] [A-Z])${OFF} sources.\" >&2
    205 echo \"Attempting to continue.\" >&2"
    206182
    207183HEADER="# This file is automatically generated by jhalfs-X
     
    494470      hlfs) svn_root="HLFS" ;;
    495471      clfs) svn_root="cross-lfs" ;;
    496       blfs) svn_root="BLFS" ;;
    497472      *) echo "BOOK not defined in function <get_book>"
    498473          exit 1 ;;
     
    595570                 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
    596571      ;;
    597     blfs)
    598         echo -n " ${L_arrow}${BOLD}BLFS${R_arrow} build"
    599         xsltproc --nonet \
    600                  --xinclude \
    601                  --stringparam testsuite $TEST \
    602                  --stringparam server $SERVER \
    603                  -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
    604       ;;
    605572    *) exit 1 ;;
    606573  esac
     
    613580  # Create the packages file. We need it for proper Makefile creation
    614581  rm -f packages
    615   if [[ "${PROGNAME}" != "blfs" ]] ; then
    616     echo -n "Creating <${PROGNAME}> specific packages file"
    617     grep "\-version " $BOOK/packages.ent | sed -e 's@<!ENTITY @@' \
    618                                                 -e 's@">@"@' > packages
    619     echo " ...OK"
    620   fi
     582  echo -n "Creating <${PROGNAME}> specific packages file"
     583  grep "\-version " $BOOK/packages.ent | sed -e 's@<!ENTITY @@' \
     584                                             -e 's@">@"@' > packages
     585  echo " ...OK"
    621586
    622587  # Done. Moving on...
  • common/config

    r3a27393 r25b52e2  
    3232#=== Build options ===
    3333#--- Run the makefile at the end  0(no)/1(yes)
    34 #    In BLFS the Makefile can't be run automatically
    3534RUNMAKE=0
    3635
     
    4645#  0 = none
    4746#  1 = only chapter06 Glibc, GCC and Binutils testsuites
    48 #      (in BLFS, run the package testsuite, if any)
    4947#  2 = all chapter06 testsuites
    50 #      (in BLFS, alias to 1)
    5148#  3 = all chapter05 and chapter06 testsuites
    52 #      (in BLFS, alias to 1)
    5349#      (in CLFS, alias to 2)
    5450TEST=1
  • common/func_validate_configs.sh

    r3a27393 r25b52e2  
    7777    input vars: none
    7878    externals:  color constants
    79                 PROGNAME (lfs,clfs,hlfs,blfs)
     79                PROGNAME (lfs,clfs,hlfs)
    8080    modifies:   none
    8181    returns:    nothing
     
    8585
    8686  # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
    87   local -r blfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG         DEPEND                TEST OPTIMIZE"
    8887  local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG KEYMAP         PAGE TIMEZONE LANG LC_ALL"
    8988  local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG KEYMAP VIMLANG PAGE TIMEZONE LANG"
     
    204203      STRIP)      validate_against_str "x0x x1x" ;;
    205204      VIMLANG)    validate_against_str "x0x x1x" ;;
    206       DEPEND)     validate_against_str "x0x x1x x2x" ;;
    207205      MODEL)      validate_against_str "xglibcx xuclibcx" ;;
    208206      PAGE)       validate_against_str "xletterx xA4x" ;;
Note: See TracChangeset for help on using the changeset viewer.