Changeset b928382 for BLFS/gen-makefile.sh
- Timestamp:
- 08/15/2006 01:33:40 AM (18 years ago)
- Branches:
- experimental
- Children:
- bc4a8dc
- Parents:
- 2fedf49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/gen-makefile.sh
r2fedf49 rb928382 50 50 #----------------------------------# 51 51 local pkg_name=$1 52 local pkg_ver=$2 52 53 ( 53 54 cat << EOF 54 55 @touch \$@ && \\ 55 touch \$(TRACKING_DIR)/${pkg_name#*-?-} && \\56 touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver} && \\ 56 57 sleep .25 && \\ 57 58 echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ … … 66 67 #----------------------------# 67 68 local script_name=$1 68 69 local pkg_ver=$2 70 69 71 echo -n "${tab_}${tab_} entry for <$script_name>" 70 72 … … 80 82 # Include a touch of the target name so make can check 81 83 # if it's already been made. 82 __wrt_touch "${script_name}" 84 __wrt_touch "${script_name}" "${pkg_ver}" 83 85 # 84 86 #--------------------------------------------------------------------# … … 102 104 for package_script in scripts/* ; do 103 105 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 105 111 pkg_list="$pkg_list ${this_script}" 106 __write_entry $this_script112 __write_entry "${this_script}" "${script_ver}" 107 113 PREV_PACKAGE=${this_script} 108 114 fi
Note:
See TracChangeset
for help on using the changeset viewer.