r4713 - dists/trunk/linux-2.6/debian/bin

Jurij Smakov jurij-guest at costa.debian.org
Thu Nov 3 07:46:22 UTC 2005


Author: jurij-guest
Date: 2005-11-03 07:46:21 +0000 (Thu, 03 Nov 2005)
New Revision: 4713

Modified:
   dists/trunk/linux-2.6/debian/bin/install-image
Log:
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.


Modified: dists/trunk/linux-2.6/debian/bin/install-image
===================================================================
--- dists/trunk/linux-2.6/debian/bin/install-image	2005-11-02 16:40:10 UTC (rev 4712)
+++ dists/trunk/linux-2.6/debian/bin/install-image	2005-11-03 07:46:21 UTC (rev 4713)
@@ -107,12 +107,24 @@
 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"
 




More information about the Kernel-svn-changes mailing list