1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-25 09:41:30 +02:00
vlc/contrib/diffpatch.sh
2019-10-11 12:49:11 +02:00

5 lines
282 B
Bash
Executable File

#!/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 \;