]> git.sesse.net Git - ffmpeg/commitdiff
doc/writing_filters: use a more portable sed command in the walk-through
authorClément Bœsch <u@pkh.me>
Tue, 18 Nov 2014 20:09:38 +0000 (21:09 +0100)
committerClément Bœsch <u@pkh.me>
Tue, 18 Nov 2014 20:10:40 +0000 (21:10 +0100)
doc/writing_filters.txt

index c7923e884f02dcee12d0e06821a5e6e5acf61193..40935d2cfcfc1eb1457dbb276632febaea5e9fd5 100644 (file)
@@ -16,9 +16,7 @@ outputs the modified frame. The most simple way of doing this is to take a
 similar filter.  We'll pick edgedetect, but any other should do. You can look
 for others using the `./ffmpeg -v 0 -filters|grep ' V->V '` command.
 
- - cp libavfilter/vf_{edgedetect,foobar}.c
- - sed -i s/edgedetect/foobar/g -i libavfilter/vf_foobar.c
- - sed -i s/EdgeDetect/Foobar/g -i libavfilter/vf_foobar.c
+ - sed 's/edgedetect/foobar/g;s/EdgeDetect/Foobar/g' libavfilter/vf_edgedetect.c > libavfilter/vf_foobar.c
  - edit libavfilter/Makefile, and add an entry for "foobar" following the
    pattern of the other filters.
  - edit libavfilter/allfilters.c, and add an entry for "foobar" following the