BLFS: updated gen_config.sh with META package manipulation
This commit is contained in:
parent
bcbf830172
commit
711f160ee0
1 changed files with 31 additions and 5 deletions
|
@ -56,14 +56,37 @@ do
|
||||||
PKG_NAME=$1
|
PKG_NAME=$1
|
||||||
PKG_XML_FILE=$(basename $2)
|
PKG_XML_FILE=$(basename $2)
|
||||||
PKG_DIR=$(dirname $2)
|
PKG_DIR=$(dirname $2)
|
||||||
|
# These are the META packages. for gnome and kde (soon ALSA and Xorg7)
|
||||||
if [ $PKG_DIR = "." ]; then
|
if [ $PKG_DIR = "." ]; then
|
||||||
|
SET_COMMENT=y
|
||||||
if [ -e $TRACKING_DIR/${PKG_NAME} ]; then continue; fi
|
if [ -e $TRACKING_DIR/${PKG_NAME} ]; then continue; fi
|
||||||
PKG_NAME=$(echo ${PKG_NAME} | tr [a-z] [A-Z])
|
META_PKG=$(echo ${PKG_NAME} | tr [a-z] [A-Z])
|
||||||
echo -e "config CONFIG_$PKG_NAME" >> $outFile
|
#(
|
||||||
echo -e "\tbool \"$PKG_NAME\"" >> $outFile
|
#cat << EOF
|
||||||
echo -e "\tdefault n" >> $outFile
|
# config META_$META_PKG
|
||||||
|
# bool "$(echo ${PKG_NAME} | tr [a-z] [A-Z]) components"
|
||||||
|
#EOF
|
||||||
|
#) >> $outFile
|
||||||
|
echo -e "menu \"$(echo ${PKG_NAME} | tr [a-z] [A-Z]) components\"" >> $outFile
|
||||||
|
# Include the dependency data for this meta package
|
||||||
|
while [ 0 ]; do
|
||||||
|
read || break 1
|
||||||
|
PKG_NAME=${REPLY}
|
||||||
|
get_pkg_ver "${PKG_NAME}"
|
||||||
|
(
|
||||||
|
cat << EOF
|
||||||
|
config DEP_${META_PKG}_${PKG_NAME}
|
||||||
|
# depends META_${META_PKG}
|
||||||
|
bool "$PKG_NAME ${PKG_VER}"
|
||||||
|
default y
|
||||||
|
|
||||||
|
EOF
|
||||||
|
) >> $outFile
|
||||||
|
done <./libs/${PKG_NAME}.dep
|
||||||
|
echo -e "endmenu" >> $outFile
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
[[ "${SET_COMMENT}" = "y" ]] && echo "comment \"--\"" >>$outFile; unset SET_COMMENT
|
||||||
|
|
||||||
# Deal with a few unusable chapter names
|
# Deal with a few unusable chapter names
|
||||||
case ${PKG_NAME} in
|
case ${PKG_NAME} in
|
||||||
|
@ -86,6 +109,9 @@ do
|
||||||
|
|
||||||
# Define a top level menu
|
# Define a top level menu
|
||||||
if [ "$PREV_DIR1" != "${DIR_TREE[1]}" ]; then
|
if [ "$PREV_DIR1" != "${DIR_TREE[1]}" ]; then
|
||||||
|
[[ "${DIR_TREE[1]}" = "kde" ]] && continue
|
||||||
|
[[ "${DIR_TREE[1]}" = "gnome" ]] && continue
|
||||||
|
|
||||||
if [ $MENU_SET1 = "y" ]; then
|
if [ $MENU_SET1 = "y" ]; then
|
||||||
# Close out any open secondary menu
|
# Close out any open secondary menu
|
||||||
if [ $MENU_SET2 = "y" ]; then
|
if [ $MENU_SET2 = "y" ]; then
|
||||||
|
|
Reference in a new issue