Ignore:
Timestamp:
08/19/2006 02:45:07 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
e557f50
Parents:
7b08c36
Message:

Let gen-makefile.sh to get package version from packages database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/gen-makefile.sh

    r7b08c36 r5743d54  
    5151  local pkg_name=$1
    5252  local pkg_ver=$2
     53
     54  if [[ -n "$pkg_ver" ]] ; then
     55(
     56cat << EOF
     57        @touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver}
     58EOF
     59) >> $MKFILE.tmp
     60  fi
     61
    5362(
    5463cat << EOF
    5564        @touch  \$@ && \\
    56         touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver} && \\
    5765        sleep .25 && \\
    5866        echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
     
    6876  local script_name=$1
    6977  local pkg_ver=$2
    70  
     78
    7179  echo -n "${tab_}${tab_} entry for <$script_name>"
    7280
     
    104112  for package_script in scripts/* ; do
    105113    this_script=`basename $package_script`
    106     script_ver=$(xmllint --noent ../blfs-xml/book/bookinfo.xml 2>/dev/null | \
    107                 grep -i " ${this_script#*-?-}-version " | \
    108                 cut -d "\"" -f2 )
     114    pkg_ver=$(grep "^${this_script#*-?-}[[:space:]]" ../packages | cut -f3)
    109115    if [ ! -e $TRACKING_DIR/${this_script#*-?-}-$script_ver ]; then
    110116      pkg_list="$pkg_list ${this_script}"
    111      __write_entry "${this_script}" "${script_ver}"
     117     __write_entry "${this_script}" "${pkg_ver}"
    112118      PREV_PACKAGE=${this_script}
    113119    fi
Note: See TracChangeset for help on using the changeset viewer.