kolibrios-fun/contrib/sdk/sources/ffmpeg/ffmpeg-2.1/tools/clean-diff
Sergey Semyonov (Serge) ecf3e862ea ffmpeg-2.1.1: move directory
git-svn-id: svn://kolibrios.org@6148 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-02-05 22:14:10 +00:00

12 lines
325 B
Bash

#!/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'