comparison sources/functions.sh @ 796:5f793a1ca658

Teach host-tools.sh to create multiple symlinks in fallback directories for ccache and distcc.
author Rob Landley <rob@landley.net>
date Fri, 07 Aug 2009 23:52:55 -0500
parents 23bff7aa79eb
children 2c9f22daa8fe
comparison
equal deleted inserted replaced
795:c1bf33329d1f 796:5f793a1ca658
589 # Depth first kill avoids reparent_to_init hiding stuff. 589 # Depth first kill avoids reparent_to_init hiding stuff.
590 killtree $KIDS 590 killtree $KIDS
591 kill $KIDS 2>/dev/null 591 kill $KIDS 2>/dev/null
592 fi 592 fi
593 } 593 }
594
595 # Create colon-separated path for $HOSTTOOLS and all fallback directories
596 # (Fallback directories are to support ccache and distcc on the host.)
597
598 function hosttools_path()
599 {
600 local X
601
602 echo -n "$HOSTTOOLS"
603 X=1
604 while [ -e "$HOSTTOOLS/fallback-$X" ]
605 do
606 echo -n ":$HOSTTOOLS/fallback-$X"
607 X=$[$X+1]
608 done
609 }