Changeset b928382


Ignore:
Timestamp:
08/15/2006 01:33:40 AM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
bc4a8dc
Parents:
2fedf49
Message:

BLFS: Add pkg version (if available) to tracking file name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/gen-makefile.sh

    r2fedf49 rb928382  
    5050#----------------------------------#
    5151  local pkg_name=$1
     52  local pkg_ver=$2
    5253(
    5354cat << EOF
    5455        @touch  \$@ && \\
    55         touch \$(TRACKING_DIR)/${pkg_name#*-?-} && \\
     56        touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver} && \\
    5657        sleep .25 && \\
    5758        echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
     
    6667#----------------------------#
    6768  local script_name=$1
    68 
     69  local pkg_ver=$2
     70 
    6971  echo -n "${tab_}${tab_} entry for <$script_name>"
    7072
     
    8082  # Include a touch of the target name so make can check
    8183  # if it's already been made.
    82   __wrt_touch "${script_name}"
     84  __wrt_touch "${script_name}" "${pkg_ver}"
    8385  #
    8486  #--------------------------------------------------------------------#
     
    102104  for package_script in scripts/* ; do
    103105    this_script=`basename $package_script`
    104     if [ ! -e $TRACKING_DIR/${this_script#*-} ]; then
     106    script_ver=$(xmllint --noent ../blfs-xml/book/bookinfo.xml 2>/dev/null | \
     107                grep -i " ${this_script#*-?-}-version " | \
     108                cut -d "\"" -f2 )
     109    echo "${this_script} ... ${this_script#*-?-} .. ver ${script_ver}"
     110    if [ ! -e $TRACKING_DIR/${this_script#*-?-}-$script_ver ]; then
    105111      pkg_list="$pkg_list ${this_script}"
    106       __write_entry $this_script
     112     __write_entry "${this_script}" "${script_ver}"
    107113      PREV_PACKAGE=${this_script}
    108114    fi
Note: See TracChangeset for help on using the changeset viewer.