Changeset c88f294
- Timestamp:
- 08/19/2006 12:09:55 PM (18 years ago)
- Branches:
- experimental
- Children:
- 7b08c36
- Parents:
- 8b0d3b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/gen_config.sh
r8b0d3b3 rc88f294 12 12 declare PKG_XML_FILE 13 13 declare PKG_DIR 14 declare PKG_VER 14 15 declare SAVE_IFS=${IFS} 15 16 declare -a DIR_TREE … … 18 19 declare MENU_SET1="n" 19 20 declare MENU_SET2="n" 20 21 declare PKG_VER22 23 get_pkg_ver() {24 local this_script=$125 26 case ${this_script} in27 # ALSA packages version28 alsa* ) this_script=alsa ;;29 30 # KDE packages version31 kdevelop ) : ;;32 kde*config ) : ;;33 kde* ) this_script=kde ;;34 35 # Xorg7 packages version36 xorg7-server ) this_script=xorg-server ;;37 xterm2 ) this_script=xterm ;;38 xorg7* ) this_script=xorg7 ;;39 40 # Others (ID value don't match entity name)41 wireless_tools ) this_script=wireless-tools ;;42 bind-utils ) this_script=bind ;;43 html-tidy ) this_script=tidy ;;44 jdk ) this_script=jdk-src ;;45 reiserfs ) this_script=reiser ;;46 xfs ) this_script=xfsprogs ;;47 esac48 49 PKG_VER=$(xmllint --noent ./blfs-xml/book/bookinfo.xml 2>/dev/null | \50 grep -i " ${this_script}-version " | cut -d "\"" -f2 )51 52 }53 21 54 22 > $outFile … … 79 47 PKG_XML_FILE=$(basename $2) 80 48 PKG_DIR=$(dirname $2) 81 # These are the META packages. for gnome and kde (soon ALSA and Xorg7) 49 PKG_VER=$3 50 # These are the META packages. 82 51 if [ $PKG_DIR = "." ]; then 83 52 SET_COMMENT=y 84 53 # Do not include previously installed packages.... 85 if [ -e $TRACKING_DIR/${PKG_NAME} ]; then continue; fi54 if [ -e $TRACKING_DIR/${PKG_NAME}-${PKG_VER} ]; then continue; fi 86 55 87 56 META_PKG=$(echo ${PKG_NAME} | tr [a-z] [A-Z]) 88 57 echo -e "config CONFIG_$META_PKG" >> $outFile 89 echo -e "\tbool \"$META_PKG \"" >> $outFile58 echo -e "\tbool \"$META_PKG $PKG_VER\"" >> $outFile 90 59 echo -e "\tdefault n" >> $outFile 91 60 … … 95 64 while [ 0 ]; do 96 65 read || break 1 97 98 get_pkg_ver "${PKG_NAME}" 66 PKG_NAME=${REPLY} 67 PKG_VER=$(grep "^$PKG_NAME[[:space:]]" $inFile | cut -f3) 99 68 ( 100 69 cat << EOF … … 120 89 # IF this package name-version exists in the tracking dir 121 90 # do not add this package to the list of installable pkgs. 122 get_pkg_ver "${PKG_NAME}"123 91 if [ -e $TRACKING_DIR/${PKG_NAME}-${PKG_VER} ]; then continue; fi 124 92 … … 127 95 IFS="$SAVE_IFS" 128 96 129 97 # Define a top level menu 130 98 if [ "$PREV_DIR1" != "${DIR_TREE[1]}" ]; then 131 99 [[ "${DIR_TREE[1]}" = "kde" ]] && continue … … 147 115 fi 148 116 149 117 # Define a secondary menu 150 118 if [ "$PREV_DIR2" != "${DIR_TREE[2]}" ]; then 151 119 # Close out the previous open menu structure
Note:
See TracChangeset
for help on using the changeset viewer.