summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-10-09 08:53:41 +0000
committerMichael Krufky <devnull@localhost>2005-10-09 08:53:41 +0000
commit15e9f7c5dda7607d5080c899de36fe6003e1318c (patch)
treee7cd9c2e63b5bdcef5abd53708e41e2b364f2f68 /v4l
parent02811d3e7cd6c7f0f433a2e6ac6e78158aaf7e67 (diff)
downloadmediapointer-dvb-s2-15e9f7c5dda7607d5080c899de36fe6003e1318c.tar.gz
mediapointer-dvb-s2-15e9f7c5dda7607d5080c899de36fe6003e1318c.tar.bz2
- symlink entire dvb-kernel tree into v4l-kernel/linux
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/ChangeLog8
-rw-r--r--v4l/scripts/merge-trees.sh98
-rw-r--r--v4l/scripts/unmerge-trees.sh5
3 files changed, 74 insertions, 37 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index 1a0924239..6559ebd45 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,11 @@
+2005-10-09 08:46 mkrufky
+
+ * ../v4l/scripts/merge-trees.sh:
+ * ../v4l/scripts/unmerge-trees.sh:
+ - symlink entire dvb-kernel tree into v4l-kernel/linux
+
+ Signed-off-by: Michael Krufky <mkrufky@m1k.net>
+
2005-10-09 03:52 mchehab
* ../Makefile:
diff --git a/v4l/scripts/merge-trees.sh b/v4l/scripts/merge-trees.sh
index 2244ccfeb..d1921c763 100644
--- a/v4l/scripts/merge-trees.sh
+++ b/v4l/scripts/merge-trees.sh
@@ -1,43 +1,67 @@
#!/bin/sh
+PWD=`pwd`
+CWD=$PWD
+
+cd ../linux
+V4L=$PWD
+cd ../../dvb-kernel/linux
+DVB=$PWD
+
+for x in `find drivers/media/dvb -type d | grep -v CVS | grep -v patches | grep -v compat` ; do
+ mkdir -p -v $V4L/$x
+done
+
+mkdir -p -v $V4L/include/linux/dvb
+
+for x in `find drivers -type f | grep -v CVS | grep -v .cvsignore` ; do
+ ln -v -f -s $DVB/$x $V4L/$x
+done
+
+for x in `find include -type f | grep -v CVS | grep -v .cvsignore` ; do
+ ln -v -f -s $DVB/$x $V4L/$x
+done
+
+cd $CWD
+echo .
echo creating symlinks
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/dvb-pll.c dvb-pll.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/dvb-pll.h dvb-pll.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/mt352.c mt352.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/mt352.h mt352.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/mt352_priv.h mt352_priv.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/cx22702.c cx22702.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/cx22702.h cx22702.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/lgdt330x.c lgdt330x.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/lgdt330x.h lgdt330x.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/lgdt330x_priv.h lgdt330x_priv.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/or51132.c or51132.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/or51132.h or51132.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/tda1004x.c tda1004x.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/tda1004x.h tda1004x.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/sp887x.c sp887x.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/sp887x.h sp887x.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/nxt6000.c nxt6000.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/nxt6000.h nxt6000.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/nxt6000_priv.h nxt6000_priv.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/cx24110.c cx24110.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/cx24110.h cx24110.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/or51211.c or51211.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/frontends/or51211.h or51211.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/bt878.c bt878.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/bt878.h bt878.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c dvb-bt8xx.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.h dvb-bt8xx.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/dst.c dst.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/dst_ca.c dst_ca.c
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/dst_ca.h dst_ca.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/dst_common.h dst_common.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/bt8xx/dst_priv.h dst_priv.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/dvb-core/dvbdev.h dvbdev.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/dvb-core/dmxdev.h dmxdev.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_demux.h dvb_demux.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_net.h dvb_net.h
-ln -s ../../dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_frontend.h dvb_frontend.h
+ln -s $V4L/drivers/media/dvb/frontends/dvb-pll.c dvb-pll.c
+ln -s $V4L/drivers/media/dvb/frontends/dvb-pll.h dvb-pll.h
+ln -s $V4L/drivers/media/dvb/frontends/mt352.c mt352.c
+ln -s $V4L/drivers/media/dvb/frontends/mt352.h mt352.h
+ln -s $V4L/drivers/media/dvb/frontends/mt352_priv.h mt352_priv.h
+ln -s $V4L/drivers/media/dvb/frontends/cx22702.c cx22702.c
+ln -s $V4L/drivers/media/dvb/frontends/cx22702.h cx22702.h
+ln -s $V4L/drivers/media/dvb/frontends/lgdt330x.c lgdt330x.c
+ln -s $V4L/drivers/media/dvb/frontends/lgdt330x.h lgdt330x.h
+ln -s $V4L/drivers/media/dvb/frontends/lgdt330x_priv.h lgdt330x_priv.h
+ln -s $V4L/drivers/media/dvb/frontends/or51132.c or51132.c
+ln -s $V4L/drivers/media/dvb/frontends/or51132.h or51132.h
+ln -s $V4L/drivers/media/dvb/frontends/tda1004x.c tda1004x.c
+ln -s $V4L/drivers/media/dvb/frontends/tda1004x.h tda1004x.h
+ln -s $V4L/drivers/media/dvb/frontends/sp887x.c sp887x.c
+ln -s $V4L/drivers/media/dvb/frontends/sp887x.h sp887x.h
+ln -s $V4L/drivers/media/dvb/frontends/nxt6000.c nxt6000.c
+ln -s $V4L/drivers/media/dvb/frontends/nxt6000.h nxt6000.h
+ln -s $V4L/drivers/media/dvb/frontends/nxt6000_priv.h nxt6000_priv.h
+ln -s $V4L/drivers/media/dvb/frontends/cx24110.c cx24110.c
+ln -s $V4L/drivers/media/dvb/frontends/cx24110.h cx24110.h
+ln -s $V4L/drivers/media/dvb/frontends/or51211.c or51211.c
+ln -s $V4L/drivers/media/dvb/frontends/or51211.h or51211.h
+ln -s $V4L/drivers/media/dvb/bt8xx/bt878.c bt878.c
+ln -s $V4L/drivers/media/dvb/bt8xx/bt878.h bt878.h
+ln -s $V4L/drivers/media/dvb/bt8xx/dvb-bt8xx.c dvb-bt8xx.c
+ln -s $V4L/drivers/media/dvb/bt8xx/dvb-bt8xx.h dvb-bt8xx.h
+ln -s $V4L/drivers/media/dvb/bt8xx/dst.c dst.c
+ln -s $V4L/drivers/media/dvb/bt8xx/dst_ca.c dst_ca.c
+ln -s $V4L/drivers/media/dvb/bt8xx/dst_ca.h dst_ca.h
+ln -s $V4L/drivers/media/dvb/bt8xx/dst_common.h dst_common.h
+ln -s $V4L/drivers/media/dvb/bt8xx/dst_priv.h dst_priv.h
+ln -s $V4L/drivers/media/dvb/dvb-core/dvbdev.h dvbdev.h
+ln -s $V4L/drivers/media/dvb/dvb-core/dmxdev.h dmxdev.h
+ln -s $V4L/drivers/media/dvb/dvb-core/dvb_demux.h dvb_demux.h
+ln -s $V4L/drivers/media/dvb/dvb-core/dvb_net.h dvb_net.h
+ln -s $V4L/drivers/media/dvb/dvb-core/dvb_frontend.h dvb_frontend.h
patch -p2 <<'DIFF'
diff -up v4l-kernel.orig/v4l/Make.config v4l-kernel/v4l/Make.config
--- v4l-kernel.orig/v4l/Make.config 2005-10-08 17:31:57.000000000 -0400
diff --git a/v4l/scripts/unmerge-trees.sh b/v4l/scripts/unmerge-trees.sh
index b06a66938..5bb2ea45d 100644
--- a/v4l/scripts/unmerge-trees.sh
+++ b/v4l/scripts/unmerge-trees.sh
@@ -38,6 +38,11 @@ rm dmxdev.h 2> /dev/null
rm dvb_demux.h 2> /dev/null
rm dvb_net.h 2> /dev/null
rm dvb_frontend.h 2> /dev/null
+cd ..
+for x in `find linux -type l` ; do
+ rm -rf $x 2> /dev/null
+done
+cd v4l
patch -p2 <<'DIFF'
diff -up v4l-kernel/v4l/Make.config v4l-kernel.orig/v4l/Make.config
--- v4l-kernel/v4l/Make.config 2005-10-08 17:46:08.000000000 -0400