mirror of https://git.ffmpeg.org/ffmpeg.git
fate/source: Do not use GNU extensions in sed
This commit is contained in:
parent
a9b81bfd1c
commit
94a1c7491b
|
@ -19,8 +19,8 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FFMPEG_CMDUTILS_H
|
#ifndef CMDUTILS_H
|
||||||
#define FFMPEG_CMDUTILS_H
|
#define CMDUTILS_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
|
@ -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:
|
echo Headers without standard inclusion guards:
|
||||||
for f in `git ls-files | grep '\.h$'` ; do
|
for f in `git ls-files | grep '\.h$'` ; do
|
||||||
macro="`echo $f | sed \
|
macro="`echo $f | sed \
|
||||||
-e '/\/\|^ff/!{s/\(.*\)/ffmpeg\/\1/}' \
|
|
||||||
-e 's/^lib//' \
|
-e 's/^lib//' \
|
||||||
-e 's/[^A-Za-z0-9]\{1\,\}/_/g' \
|
-e 's/[^A-Za-z0-9]\{1,\}/_/g' \
|
||||||
-e 's/_\(a\|v\|av\)f_/_/' \
|
-e 's/_af_/_/' \
|
||||||
|
-e 's/_vf_/_/' \
|
||||||
|
-e 's/_avf_/_/' \
|
||||||
|
-e 's/_vaf_/_/' \
|
||||||
| tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
|
| tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
|
||||||
|
|
||||||
grep -L "^#define $macro$" $f
|
grep -L "^#define $macro$" $f
|
||||||
|
|
Loading…
Reference in New Issue