diff options
author | Timothy Gu <timothygu99@gmail.com> | 2016-02-11 22:26:03 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2016-02-13 07:59:00 -0800 |
commit | 94a1c7491bb393f4ae822cf49c2a8038e41409f5 (patch) | |
tree | 516c9dd59082868c7375fa8706b0401d683551e5 /tests/fate/source-check.sh | |
parent | a9b81bfd1c7a9b3d4c92af99aee9a284d1133b9e (diff) | |
download | ffmpeg-streaming-94a1c7491bb393f4ae822cf49c2a8038e41409f5.zip ffmpeg-streaming-94a1c7491bb393f4ae822cf49c2a8038e41409f5.tar.gz |
fate/source: Do not use GNU extensions in sed
Diffstat (limited to 'tests/fate/source-check.sh')
-rwxr-xr-x | tests/fate/source-check.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/fate/source-check.sh b/tests/fate/source-check.sh index 1947b52..33affae 100755 --- a/tests/fate/source-check.sh +++ b/tests/fate/source-check.sh @@ -19,10 +19,12 @@ git grep -L -E "This file is part of FFmpeg|This file is part of libswresample|" echo Headers without standard inclusion guards: for f in `git ls-files | grep '\.h$'` ; do macro="`echo $f | sed \ - -e '/\/\|^ff/!{s/\(.*\)/ffmpeg\/\1/}' \ -e 's/^lib//' \ - -e 's/[^A-Za-z0-9]\{1\,\}/_/g' \ - -e 's/_\(a\|v\|av\)f_/_/' \ + -e 's/[^A-Za-z0-9]\{1,\}/_/g' \ + -e 's/_af_/_/' \ + -e 's/_vf_/_/' \ + -e 's/_avf_/_/' \ + -e 's/_vaf_/_/' \ | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" grep -L "^#define $macro$" $f |