Changeset d0d9e90 for BLFS/libs/func_dependencies
- Timestamp:
- 08/13/2006 10:01:14 AM (18 years ago)
- Branches:
- experimental
- Children:
- 00f4966
- Parents:
- 1b99a8b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/libs/func_dependencies
r1b99a8b rd0d9e90 63 63 ENTRY_END="\"/>" 64 64 65 echo -e n"\tGenerating $TARGET dependencies tree ..."65 echo -e "\tGenerating $TARGET dependencies tree ..." 66 66 67 67 mkdir dependencies … … 121 121 esac 122 122 123 #------------------P---124 # Start with a clean depure.txt file125 > depure.txt126 127 123 #--------------------- 128 124 # If have dependencies, write its XInclude and find sub-dependencies 129 125 if [[ -f dependencies/$TARGET.dep ]]; then 130 echo -e "Start loop for PKG $TARGET\n" >> depure.txt131 126 mkdir xincludes && do_dependencies $TARGET 132 127 fi 133 128 134 echo "done"129 echo -e "\n\t... done" 135 130 } 136 131 … … 167 162 local DEP_LV=$DEP_LEVEL 168 163 local line line2 DEP 169 echo -e "\tPKG is $PKG" >> depure.txt170 echo -e "\tDEP_LEVEL for $PKG is $DEP_LV\n" >> depure.txt171 164 172 165 #------------------ 173 166 # If a premade xinclude file exists, use it. If not, create one 174 167 if [[ -f xincludes/$PKG.xinc ]] ; then 175 echo -e "\tReusing xinclude file for PKG $PKG" >> depure.txt176 168 IFS=$'\x0A' 177 169 for line in `cat xincludes/$PKG.xinc` ; do … … 219 211 220 212 #------------------ 221 echo -e "\tDEP for $PKG is $DEP" >> depure.txt222 213 # Prevent circular dependencies 223 214 # If all dependencies are circular, the creation of the *.dep file … … 260 251 261 252 #------------------ 262 echo -e "\tDEP_LEVEL for $DEP is $DEP_LV" >> depure.txt263 253 # XML file of dependency package 264 254 DEP_XML=`grep "^$DEP[[:space:]]" ../packages | cut -f2` 265 echo -e "\t\tDEP_XML is $DEP_XML\n" >> depure.txt266 255 case $DEP in 267 256 x-window-system | alsa ) ;; # No page for that (proper link must be created when generating the book) … … 310 299 # If a premade xinclude file esist, include it 311 300 if [[ -f xincludes/$DEP.xinc ]] ; then 312 echo -e "\tReusing xinclude file for PKG $DEP (to solve $PKG)\n" >> depure.txt313 301 IFS=$'\x0A' 314 302 for line2 in `cat xincludes/$DEP.xinc` ; do … … 322 310 # Create the xinclude file 323 311 else 324 echo -e "\nStart new loop for PKG $DEP (to solve $PKG)\n" >> depure.txt325 312 # 326 313 # >>>>>> THIS IS A RECURSIVE FUNCTION CALL.. BEWARE OF GREMLINS. <<<<<< … … 330 317 # 331 318 set +e 332 [[ "${VERBOSITY}" > 0 ]] && echo -ne "\n recursive call: $((++cntr)) ${spaceSTR:0:$cntr}${RED}$DEP${OFF}"319 [[ "${VERBOSITY}" > 0 ]] && echo -ne "\ncall: $((++cntr))${spaceSTR:0:$cntr}${RED}$DEP${OFF}" 333 320 do_dependencies $DEP 334 [[ "${VERBOSITY}" > 0 ]] && echo -ne "\n ret: $cntr ${spaceSTR:0:$((cntr--))} ${GREEN}$DEP${OFF}\tUsing the new xinclude file for PKG $DEP (to solve $PKG)"321 [[ "${VERBOSITY}" > 0 ]] && echo -ne "\n ret: $cntr${spaceSTR:0:$((cntr--))}${GREEN}$DEP${OFF} Using $DEP Xinc to solve $PKG" 335 322 set -e 336 323 337 324 # Include it when done 338 echo -e "\tUsing the new xinclude file for PKG $DEP (to solve $PKG)\n" >> depure.txt339 325 IFS=$'\x0A' 340 326 for line2 in `cat xincludes/$DEP.xinc` ; do … … 358 344 #------------------ 359 345 mv xincludes/$PKG.xinc.tmp xincludes/$PKG.xinc 360 echo -e "Using the new xinclude file for PKG $PKG" >> depure.txt361 346 IFS=$'\x0A' 362 347 for line in `cat xincludes/$PKG.xinc` ; do … … 367 352 echo -e "$line" >> $TARGET-index.xml.tmp 368 353 done 369 370 echo -e "\nEnd loop for PKG $PKG\n" >> depure.txt371 354 }
Note:
See TracChangeset
for help on using the changeset viewer.