/[kernel]/branches/kernel-image-2.6.11/header-install.in
ViewVC logotype

Contents of /branches/kernel-image-2.6.11/header-install.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3201 - (show annotations) (download)
Fri May 20 05:56:49 2005 UTC (8 years, 1 month ago) by jurij-guest
File size: 807 byte(s)
* Moved scripts subdirectory to the -headers package
  and got rid of all kernel-kbuild references.
* Tested with 686 flavour on i386, packages produce
  file layout identical to official ones.
* Lots of minor fixes.
1 #!/bin/sh
2 #
3 # This is the make-kpkg hook file, which runs when make-kpkg is invoked
4 # (from debian/rules) to create the flavour-independent kernel-headers
5 # package. Two major tasks which it performs are a) copying the extra
6 # files into the temporary kernel-headers directory and b) removing
7 # unneeded include/asm-* directories.
8 #
9 set -e
10
11 cd @ksource_dir@
12 {
13 find . -path './Documentation/*' -prune -o \
14 -path './debian/*' -prune -o -type f \
15 \( -name Makefile -o -name 'Kconfig*' -o -path './scripts/*' \) -print
16 for i in @headers_extra@; do
17 echo "${i}"
18 done
19 } | cpio -pd --preserve-modification-time $OLDPWD
20 cd - > /dev/null
21
22 remove=
23 cd include
24 for i in asm-*; do
25 case ${i#asm-} in
26 generic | @headers_dirs@)
27 ;;
28 *)
29 remove="$remove $i"
30 ;;
31 esac
32 done
33 ${remove:+rm -r $remove}

  ViewVC Help
Powered by ViewVC 1.1.5