vlc | branch: master | Steve Lhomme <[email protected]> | Fri May 18 11:51:39 
2018 +0200| [f312a23a23188efa1019dd67fed2f5d7a9d2a30a] | committer: Steve Lhomme

contrib: add a script to generate contrib patches

Usage in the specific contrib folder you're building:
../diffpatch.sh <folder_of_package> <file_extension_between_old_new_versions>

eg
../diffpatch.sh flac .mingw-fix

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f312a23a23188efa1019dd67fed2f5d7a9d2a30a
---

 contrib/diffpatch.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/diffpatch.sh b/contrib/diffpatch.sh
new file mode 100644
index 0000000000..ad311c3214
--- /dev/null
+++ b/contrib/diffpatch.sh
@@ -0,0 +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
+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

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to