9
echo "Symlinking and copying headers for $flavour..."
11
excludes="( -path ./debian -prune -o -path ./${DEBIAN} -prune -o -path ./.git ) -prune -o"
14
find . $excludes -type f \
15
\( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
16
-name '*.sh' -o -name '*.pl' -o -name '*.lds' \) -print
17
find ./include ./scripts -name .gitignore -prune -o -type f -print
18
find ./include -mindepth 1 -maxdepth 1 $excludes -type d -print
24
if [ -e "$hdrdir/$file" -o -L "$hdrdir/$file" ]; then
28
while [ ! -e "$hdrdir/$dir" -a ! -L "$hdrdir/$dir" ]; do
32
# If the last item to exist is a symlink we assume all is good
33
if [ ! -L "$hdrdir/$dir" ]; then
34
# Turns things like "./foo" into "../"
35
deref="`echo -n $lastdir | sed -e 's/^\.//' -e's,/[^/]*,../,g'`"
36
item="`echo -n $lastdir | sed -e 's/^\.\///'`"
37
ln -s $deref$symdir/$item $hdrdir/$item