[vlc-devel] [PATCH] contrib: dos2unix of diffpatch.sh
Zhao Zhili
quinkblack at foxmail.com
Tue Jul 31 08:56:08 CEST 2018
---
contrib/diffpatch.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/diffpatch.sh b/contrib/diffpatch.sh
index ad311c3..5c14ff4 100644
--- a/contrib/diffpatch.sh
+++ b/contrib/diffpatch.sh
@@ -1,5 +1,5 @@
-#!/bin/sh
-# create a patch file based on file extension
-# $1 folder to run the find in
-# $2 extension to use for the diff
+#!/bin/sh
+# create a patch file based on file extension
+# $1 folder to run the find in
+# $2 extension to use for the diff
find $1 -name "*$2" -exec bash -c 'filepath="$1" ; dir=$(dirname "$filepath") ; base=$(basename -s $2 "$filepath") ; diff -pur $filepath $dir/$base' -- {} $2 \;
\ No newline at end of file
--
2.9.5
More information about the vlc-devel
mailing list