debian/bin/install-header: Bah, bash arrays don't work this way.

svn path=/dists/trunk/linux-2.6/; revision=4608
This commit is contained in:
Bastian Blank 2005-10-23 11:32:53 +00:00
parent b4cc36af8f
commit 65ee433593
1 changed files with 5 additions and 5 deletions

View File

@ -13,17 +13,17 @@ rm -rf scripts
# XXX: once we're using a linux-headers-$(version)-$(debnum) that's Arch: all,
# we'll want to drop this bit of code. The asm-* directories should remain.
DIRS="generic $KERNEL_HEADER_DIRS"
DIRS=($DIRS)
DIRS="generic $(for i in $KERNEL_HEADER_DIRS; do echo -n '|' $i; done)"
rm -f include/asm
eval "
for i in include/asm-*; do
case ${i#include/asm-} in
case \${i#include/asm-} in
$DIRS)
;;
*)
rm -rf "$i"
rm -rf "\$i"
;;
esac
done
"