summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-06-01 03:27:37 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-06-01 03:27:37 +0000
commit60bfed10defd8ee920ab058cc8baa55331a77fc0 (patch)
tree425f0ecf0e84aceaaa647f7b94adbdd2688b6ca4 /v4l/scripts
parent66f5424175886c0021ad10244dbf8c6c8fcc5891 (diff)
downloadmediapointer-dvb-s2-60bfed10defd8ee920ab058cc8baa55331a77fc0.tar.gz
mediapointer-dvb-s2-60bfed10defd8ee920ab058cc8baa55331a77fc0.tar.bz2
Add a new script to make easier to locate differences between v4l develop-
ment and kernel 2.6.
Diffstat (limited to 'v4l/scripts')
-rw-r--r--v4l/scripts/make_kern_diff.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/v4l/scripts/make_kern_diff.sh b/v4l/scripts/make_kern_diff.sh
new file mode 100644
index 000000000..6fb815fa7
--- /dev/null
+++ b/v4l/scripts/make_kern_diff.sh
@@ -0,0 +1,34 @@
+KERNEL=/usr/src/linux-2.6.12-rc5-mm
+
+KDIR="`find $KERNEL/drivers/media/ -type d|sed s,$KERNEL/,,g`"
+
+echo $KDIR
+
+CUR="`pwd`"
+mkdir kernel
+cd kernel
+for d in $KDIR; do
+ mkdir -p $d
+ FILES="`ls $KERNEL/$d|grep -v Makefile`"
+
+ for f in $FILES; do
+ if [ -e $CUR/$f ]; then
+ echo ln -sf $CUR/$f $d/$f
+ ln -sf $CUR/$f $d/$f
+ fi
+ done
+done
+
+mkdir -p Documentation/video4linux
+FILES="`find $CUR/doc/* -type f`"
+for f in $FILES; do
+ echo ln -sf $f Documentation/video4linux/
+ ln -sf $f Documentation/video4linux/
+
+done
+
+cd $CUR
+# Excludes DVB code from diff
+rm -r kernel/drivers/media/dvb
+
+(export LC_ALL=C;diff -ur /usr/src/linux-2.6.12-rc5-mm kernel/|grep -v Only)