Changeset 711f160


Ignore:
Timestamp:
08/16/2006 11:18:19 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
b5effd5
Parents:
bcbf830
Message:

BLFS: updated gen_config.sh with META package manipulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/gen_config.sh

    rbcbf830 r711f160  
    5757  PKG_XML_FILE=$(basename $2)
    5858  PKG_DIR=$(dirname $2)
     59    # These are the META packages. for gnome and kde (soon ALSA and Xorg7)
    5960  if [ $PKG_DIR = "." ]; then
     61    SET_COMMENT=y
    6062    if [ -e $TRACKING_DIR/${PKG_NAME} ]; then continue; fi
    61     PKG_NAME=$(echo ${PKG_NAME} | tr [a-z] [A-Z])
    62     echo -e "config CONFIG_$PKG_NAME" >> $outFile
    63     echo -e "\tbool \"$PKG_NAME\"" >> $outFile
    64     echo -e "\tdefault n" >> $outFile
     63    META_PKG=$(echo ${PKG_NAME} | tr [a-z] [A-Z])
     64#(
     65#cat << EOF
     66#       config  META_$META_PKG
     67#               bool    "$(echo ${PKG_NAME} | tr [a-z] [A-Z]) components"
     68#EOF
     69#) >> $outFile
     70     echo -e "menu \"$(echo ${PKG_NAME} | tr [a-z] [A-Z]) components\"" >> $outFile
     71       # Include the dependency data for this meta package
     72       while [ 0 ]; do
     73         read || break 1
     74         PKG_NAME=${REPLY}
     75         get_pkg_ver "${PKG_NAME}"
     76(
     77cat << EOF
     78        config  DEP_${META_PKG}_${PKG_NAME}
     79#               depends META_${META_PKG}
     80                bool    "$PKG_NAME ${PKG_VER}"
     81                default y
     82
     83EOF
     84) >> $outFile   
     85       done <./libs/${PKG_NAME}.dep
     86     echo -e "endmenu" >> $outFile
    6587    continue
    6688  fi
    67 
     89  [[ "${SET_COMMENT}" = "y" ]] && echo "comment \"--\"" >>$outFile; unset SET_COMMENT
     90 
    6891    # Deal with a few unusable chapter names
    6992  case ${PKG_NAME} in
     
    87110        # Define a top level menu 
    88111  if [ "$PREV_DIR1" != "${DIR_TREE[1]}" ]; then
     112    [[ "${DIR_TREE[1]}" = "kde" ]] && continue
     113    [[ "${DIR_TREE[1]}" = "gnome" ]] && continue
     114   
    89115    if [ $MENU_SET1 = "y" ]; then
    90116      # Close out any open secondary menu
Note: See TracChangeset for help on using the changeset viewer.