aboutsummaryrefslogtreecommitdiffstats
path: root/tools/clean-diff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-07-13 21:33:24 +0000
committerMåns Rullgård <mans@mansr.com>2007-07-13 21:33:24 +0000
commitc07ed8c8a22c1427323dccb7722b2b094f95e728 (patch)
tree429fe6bdd3616d542e709792dfdcb6c7f86e3fdd /tools/clean-diff
parentfdc1973e30b5ccafaa2443053fd65a35fdbd9d5a (diff)
downloadffmpeg-c07ed8c8a22c1427323dccb7722b2b094f95e728.tar.gz
create and populate "tools" directory
Originally committed as revision 9634 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools/clean-diff')
-rwxr-xr-xtools/clean-diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/clean-diff b/tools/clean-diff
new file mode 100755
index 0000000000..98e26a79f9
--- /dev/null
+++ b/tools/clean-diff
@@ -0,0 +1,11 @@
+#!/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'