Mercurial > hg > aboriginal
diff 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 |
line wrap: on
line diff
--- a/sources/functions.sh Fri Aug 07 13:08:59 2009 -0500 +++ b/sources/functions.sh Fri Aug 07 23:52:55 2009 -0500 @@ -591,3 +591,19 @@ kill $KIDS 2>/dev/null fi } + +# Create colon-separated path for $HOSTTOOLS and all fallback directories +# (Fallback directories are to support ccache and distcc on the host.) + +function hosttools_path() +{ + local X + + echo -n "$HOSTTOOLS" + X=1 + while [ -e "$HOSTTOOLS/fallback-$X" ] + do + echo -n ":$HOSTTOOLS/fallback-$X" + X=$[$X+1] + done +}