~ubuntu-branches/ubuntu/jaunty/mesa/jaunty

« back to all changes in this revision

Viewing changes to debian/scripts/install-source.sh

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-23 10:20:24 UTC
  • mfrom: (1.2.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090123102024-1f3kmb3aea7wzk67
Tags: 7.3~rc3-1ubuntu1
* Merge with Debian experimental.
* Drop 102_dont_vblank.patch, since the new drm code in the kernel
  fixes the bugs that it worked around.
* Bump the build-dependency of libdrm to 2.4.4. It's the first version
  with necessary changes to build this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
if [ -n "$1" ]; then
4
 
        TOP="$1"
5
 
else
6
 
        TOP=`pwd`
7
 
fi
8
 
 
9
 
SOURCE_DIRS='
10
 
        include/GL/internal
11
 
        src/glx/x11
12
 
        src/mesa/drivers/common
13
 
        src/mesa/drivers/dri/common
14
 
        src/mesa/drivers/dri/glcore
15
 
        src/mesa/drivers/x11
16
 
        src/mesa/glapi
17
 
        src/mesa/main
18
 
        src/mesa/math
19
 
        src/mesa/ppc
20
 
        src/mesa/shader
21
 
        src/mesa/sparc
22
 
        src/mesa/swrast_setup
23
 
        src/mesa/swrast
24
 
        src/mesa/tnl_dd
25
 
        src/mesa/tnl
26
 
        src/mesa/vbo
27
 
        src/mesa/x86-64
28
 
        src/mesa/x86
29
 
'
30
 
 
31
 
FILTER="-not -path '*/.svn*'"
32
 
TARGET=${TOP}/debian/tmp/usr/share/mesa-source
33
 
 
34
 
(
35
 
        find $SOURCE_DIRS $FILTER -name '*.[ch]';
36
 
        find include/GL $FILTER -name 'xmesa*.h';
37
 
) | \
38
 
        while read x; do
39
 
                DIRNAME=`dirname "$x"`
40
 
                mkdir -p "$TARGET/$DIRNAME"
41
 
                cp -lf "$x" "$TARGET/$DIRNAME"
42
 
        done
43
 
 
44
 
# fix permissions
45
 
find "$TARGET" -type f | xargs chmod 0644
46