summaryrefslogtreecommitdiffstats
path: root/debian/scripts
diff options
context:
space:
mode:
authorThierry Reding <[email protected]>2006-10-20 07:45:39 +0000
committerThierry Reding <[email protected]>2006-10-20 07:45:39 +0000
commitf20ff6213eafb9f61d8e436d78a5c737e64dc6d5 (patch)
treeb13aa36c2e95596927cbb58347fd2f941a451701 /debian/scripts
parent24ff74bdcba2508bf5f7d97041a620fe0071d0de (diff)
Add a shell script to install the Mesa sources for the mesa-swx11-source
package.
Diffstat (limited to 'debian/scripts')
-rwxr-xr-xdebian/scripts/install-source.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/scripts/install-source.sh b/debian/scripts/install-source.sh
new file mode 100755
index 00000000000..f8c92134888
--- /dev/null
+++ b/debian/scripts/install-source.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+if [ -n "$1" ]; then
+ TOP="$1"
+else
+ TOP=`pwd`
+fi
+
+SOURCE_DIRS='
+ include/GL/internal
+ src/glx/x11
+ src/mesa/array_cache
+ src/mesa/drivers/common
+ src/mesa/drivers/dri/common
+ src/mesa/drivers/dri/glcore
+ src/mesa/drivers/x11
+ src/mesa/glapi
+ src/mesa/main
+ src/mesa/math
+ src/mesa/ppc
+ src/mesa/shader
+ src/mesa/sparc
+ src/mesa/swrast_setup
+ src/mesa/swrast
+ src/mesa/tnl_dd
+ src/mesa/tnl
+ src/mesa/x86-64
+ src/mesa/x86
+'
+
+FILTER="-not -path '*/.svn*'"
+TARGET=${TOP}/debian/tmp/usr/share/mesa-source
+
+(
+ find $SOURCE_DIRS $FILTER -name '*.[ch]';
+ find include/GL $FILTER -name 'xmesa*.h';
+) | \
+ while read x; do
+ DIRNAME=`dirname "$x"`
+ mkdir -p "$TARGET/$DIRNAME"
+ cp -lf "$x" "$TARGET/$DIRNAME"
+ done
+