Changeset f694f27


Ignore:
Timestamp:
08/24/2006 06:49:35 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
740b8c0
Parents:
c0cf6c8
Message:

Last changes to can track installed meta-packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/gen-makefile.sh

    rc0cf6c8 rf694f27  
    4949  local pkg_name=$1
    5050  local pkg_ver=$2
     51  local alsa_ver=$(grep "^alsa[[:space:]]" ../packages | cut -f3)
     52  local kde_core_ver=$(grep "^kde-core[[:space:]]" ../packages | cut -f3)
     53  local xorg7_ver=$(grep "^xorg7[[:space:]]" ../packages | cut -f3)
    5154
    5255  if [[ -n "$pkg_ver" ]] ; then
     
    5760) >> $MKFILE.tmp
    5861  fi
     62
     63  case $pkg_name in
     64    *-alsa-lib ) #this the unique mandatory package for ALSA support.
     65(
     66cat << EOF
     67        @touch \$(TRACKING_DIR)/alsa-${alsa_ver}
     68EOF
     69) >> $MKFILE.tmp
     70      ;;
     71    *-kdebase )
     72(
     73cat << EOF
     74        @touch \$(TRACKING_DIR)/kde-core-${kde_core_ver}
     75EOF
     76) >> $MKFILE.tmp
     77      ;;
     78    *-xorg7-driver ) # xtrerm2 and rman are optional
     79(
     80cat << EOF
     81        @touch \$(TRACKING_DIR)/xorg7-${xorg7_ver}
     82EOF
     83) >> $MKFILE.tmp
     84      ;;
     85  esac
    5986
    6087(
     
    102129  local pkg_ver=$(grep "^${meta_pkg}[[:space:]]" ../packages | cut -f3)
    103130  local gnome_core_ver=$(grep "^gnome-core[[:space:]]" ../packages | cut -f3)
    104   local kde_core_ver=$(grep "^kde-core[[:space:]]" ../packages | cut -f3)
    105131  local kde_full_ver=$(grep "^kde-full[[:space:]]" ../packages | cut -f3)
    106132
     
    121147) >> $MKFILE.tmp
    122148      ;;
    123     kde-full )
    124 (
    125 cat << EOF
    126         @touch \$(TRACKING_DIR)/kde-core-${kde_core_ver}
    127 EOF
    128 ) >> $MKFILE.tmp
    129       ;;
    130149    kde-koffice )
    131150(
    132151cat << EOF
    133         @touch \$(TRACKING_DIR)/kde-core-${kde_core_ver}
    134152        @touch \$(TRACKING_DIR)/kde-full-${kde_full_ver}
    135153EOF
     
    168186  PACKAGE=$(basename $PWD)
    169187
     188   # alsa, kde-core and xorg7 are also available dependencies, thus handled
     189   # in another way.
    170190  case $PACKAGE in
    171     alsa | \
    172191    gnome-core | \
    173192    gnome-full | \
    174     kde-core | \
    175193    kde-full | \
    176     kde-koffice | \
    177     xorg7 )  pkg_list="$pkg_list 999-z-${PACKAGE}"
    178              __write_meta_pkg_touch "${PACKAGE}"
    179              ;;
     194    kde-koffice )  pkg_list="$pkg_list 999-z-${PACKAGE}"
     195                  __write_meta_pkg_touch "${PACKAGE}"
     196                  ;;
    180197  esac
    181198
Note: See TracChangeset for help on using the changeset viewer.