jhalfs-X: regenerating xxx.deps files

George Boudreau georgeb at linuxfromscratch.org
Wed Aug 16 19:40:11 PDT 2006


Manuel,
   I am able to generate the dependency files KDE-{core,full}.dep from 
the data in the configuration file.(see below). The "-MOD" file 
extension is for testing only.

   Run memuconfig against the gen_config.sh output and see if this is 
what you were thinking of.


#!/bin/sh
# FILE: regen_deps.sh
#   Regenerate dependency files from parameters in <configuration>
#

   # Housekeeping
rm -f libs/*.dep-MOD

while [ 0 ]; do
   read || break 1

     # Skip comments/blank lines
   case ${REPLY} in
   \#* | '') continue ;;
   esac

     # Drop the "=y" statement, unneeded
   REPLY=${REPLY%=*}
   if [[ "${REPLY:0:4}" = "DEP_" ]]; then
     META_PACKAGE=$(echo $REPLY | cut -d "_" -f2 | tr [A-Z] [a-z])
     [[ ! -e libs/${META_PACKAGE}.dep-MOD ]] && \
        >libs/${META_PACKAGE}.dep-MOD

     DEP_FNAME=$(echo $REPLY | cut -d "_" -f3)
      echo "${DEP_FNAME}" >>libs/${META_PACKAGE}.dep-MOD
   fi
done <configuration
exit



More information about the alfs-discuss mailing list