Fix the contents of scripts directory (333052).
The list of file patterns not to copy into it is specified, hopefully it will break less now. svn path=/dists/trunk/linux-2.6/; revision=4713
This commit is contained in:
parent
8c401c3d70
commit
a58cbac5bf
|
@ -107,12 +107,24 @@ cp -a include/linux/autoconf.h include/linux/compile.h \
|
|||
mkdir -p "$top/lib/modules/$version"
|
||||
ln -s "/usr/src/linux-headers-$version" "$top/lib/modules/$version/build"
|
||||
|
||||
mkdir -p "$dir/scripts"
|
||||
cp scripts/Kbuild* scripts/Makefile* "$dir/scripts"
|
||||
for i in $(find scripts -type f -perm +111 -o -name "*.sh" -o -name "*.pl"); do
|
||||
mkdir -p "$dir/$(dirname $i)"
|
||||
cp "$i" "$dir/$i"
|
||||
done
|
||||
# Populate the scripts directory. The strategy here is to specify what
|
||||
# *not* to copy, to make things a little bit more robust. We first create
|
||||
# a file with exclude patterns, then copy everything minus excluded files.
|
||||
#
|
||||
cat > scripts-exclude <<EXCLUDES
|
||||
*.c
|
||||
*.c_shipped
|
||||
*.h
|
||||
*.y
|
||||
*.l
|
||||
*.gperf
|
||||
*POTFILES.in
|
||||
*.gitignore
|
||||
*lxdialog*
|
||||
*package*
|
||||
EXCLUDES
|
||||
tar cfh - -X scripts-exclude | (cd "$dir"; umask 000; tar xsf -)
|
||||
rm -f script-exclude
|
||||
|
||||
debhelper_post "$pkg"
|
||||
|
||||
|
|
Loading…
Reference in New Issue