Skip to contentSkip to conversation

PATCH: v4l-dvb-do-not-strip-patch-files.patch

PATCH Hans de Goede 2 participants 2 messages Jul 3, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

While doing make commit of my latest patch I found out that strip-whitespace also strips the application patches included in the latest libv4l, which is bad, this patch fixes this.

Regards,

Hans

The libv4l directory contains some bugfix patches / port to libv4l patches for various applications, strip-trailing-whitespaces.sh should not touch these this patch teaches strip-trailing-whitespaces.sh to not touch .patch files.

v4l/scripts/strip-trailing-whitespaces.sh +6 -0
diff -r 6169e79de2d2 v4l/scripts/strip-trailing-whitespaces.sh
@@ -20,6 +20,12 @@
 fi
 
 for file in `eval $files`; do
+	case "$file" in
+		*.patch)
+			continue
+			;;
+	esac
+
 	perl -ne '
 	s/[ \t]+$//;
 	s<^ {8}> <\t>;

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw

Hi Hans,

Quoted 25 lines · Hans de Goede

Hi,

While doing make commit of my latest patch I found out that strip-whitespace also strips the application patches included in the latest libv4l, which is bad, this patch fixes this.

Regards,

Hans
The libv4l directory contains some bugfix patches / port to libv4l patches for various applications, strip-trailing-whitespaces.sh should not touch these
this patch teaches strip-trailing-whitespaces.sh to not touch .patch files.

diff -r 6169e79de2d2 v4l/scripts/strip-trailing-whitespaces.sh
--- a/v4l/scripts/strip-trailing-whitespaces.sh Tue Jul 01 21:18:23
2008 +0200
+++ b/v4l/scripts/strip-trailing-whitespaces.sh Thu Jul 03 13:46:16
2008 +0200

v4l/scripts/strip-trailing-whitespaces.sh +0 -0
@@ -20,6 +20,12 @@
 fi
 

v4l/scripts/strip-trailing-whitespaces.sh line 31

Quoted 10 lines
v4l/scripts/strip-trailing-whitespaces.sh +6 -0
 for file in `eval $files`; do
+    case "$file" in
+        *.patch)
+            continue
+            ;;
+    esac
+
     perl -ne '
     s/[ \t]+$//;
     s<^ {8}> <\t>;

Applied thanks.
Please post on the v4l2-library too since it targets the interested people about this v4l userspace library specifically. Cheers,
Thierry

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list