1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/tools/clean-diff

12 lines
325 B
Plaintext
Raw Normal View History

#!/bin/sh
sed '/^+[^+]/!s/ /TaBBaT/g' |\
expand -t $(seq -s , 9 8 200) |\
sed 's/TaBBaT/ /g' |\
sed '/^+[^+]/s/ * $//' |\
tr -d '\015' |\
tr '\n' '�' |\
sed 's/\(@@[^@]*@@�[^@]*\)/\n\1/g' |\
egrep -v '@@[^@]*@@�(( [^�]*�)|([+-][[:space:]]*�)|(-[[:space:]]*([^�]*)�\+[[:space:]]*\5�))*$' |\
tr -d '\n' |\
tr '�' '\n'