Changeset 5743d54 for BLFS/gen-makefile.sh
- Timestamp:
- 08/19/2006 02:45:07 PM (18 years ago)
- Branches:
- experimental
- Children:
- e557f50
- Parents:
- 7b08c36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/gen-makefile.sh
r7b08c36 r5743d54 51 51 local pkg_name=$1 52 52 local pkg_ver=$2 53 54 if [[ -n "$pkg_ver" ]] ; then 55 ( 56 cat << EOF 57 @touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver} 58 EOF 59 ) >> $MKFILE.tmp 60 fi 61 53 62 ( 54 63 cat << EOF 55 64 @touch \$@ && \\ 56 touch \$(TRACKING_DIR)/${pkg_name#*-?-}-${pkg_ver} && \\57 65 sleep .25 && \\ 58 66 echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ … … 68 76 local script_name=$1 69 77 local pkg_ver=$2 70 78 71 79 echo -n "${tab_}${tab_} entry for <$script_name>" 72 80 … … 104 112 for package_script in scripts/* ; do 105 113 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) 109 115 if [ ! -e $TRACKING_DIR/${this_script#*-?-}-$script_ver ]; then 110 116 pkg_list="$pkg_list ${this_script}" 111 __write_entry "${this_script}" "${ script_ver}"117 __write_entry "${this_script}" "${pkg_ver}" 112 118 PREV_PACKAGE=${this_script} 113 119 fi
Note:
See TracChangeset
for help on using the changeset viewer.