diff options
author | trav90 <travawine@palemoon.org> | 2018-10-17 22:56:27 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-10-17 22:56:27 -0500 |
commit | d569515f47fecf4c693678488c9234e40954a97d (patch) | |
tree | 8e693278605f71423d7ed50b9a61b58e4f92c703 /media | |
parent | ccc1476747ccc72ef7695c17fe992927bc4be691 (diff) | |
download | aura-central-d569515f47fecf4c693678488c9234e40954a97d.tar.gz |
[av1] Clean up duplicate filenames check
Diffstat (limited to 'media')
-rwxr-xr-x | media/libaom/generate_sources_mozbuild.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/media/libaom/generate_sources_mozbuild.sh b/media/libaom/generate_sources_mozbuild.sh index a8c0ba83a..f30e2e253 100755 --- a/media/libaom/generate_sources_mozbuild.sh +++ b/media/libaom/generate_sources_mozbuild.sh @@ -29,24 +29,23 @@ function write_license { # The build does not support duplicate file names. function find_duplicates { local readonly duplicate_file_names=$(find \ - $BASE_DIR/$LIBAOM_SRC_DIR/vp8 \ - $BASE_DIR/$LIBAOM_SRC_DIR/vp9 \ - $BASE_DIR/$LIBAOM_SRC_DIR/av1 \ $BASE_DIR/$LIBAOM_SRC_DIR/aom \ $BASE_DIR/$LIBAOM_SRC_DIR/aom_dsp \ - -type f -name \*.c | xargs -I {} basename {} | sort | uniq -d \ + $BASE_DIR/$LIBAOM_SRC_DIR/av1 \ + -type f -name \*.c -o -name \*.asm | \ + xargs -I {} basename -s .c {} | \ + xargs -I {} basename -s .asm {} | \ + sort | uniq -d \ ) if [ -n "${duplicate_file_names}" ]; then echo "ERROR: DUPLICATE FILES FOUND" for file in ${duplicate_file_names}; do find \ - $BASE_DIR/$LIBAOM_SRC_DIR/vp8 \ - $BASE_DIR/$LIBAOM_SRC_DIR/vp9 \ - $BASE_DIR/$LIBAOM_SRC_DIR/av1 \ $BASE_DIR/$LIBAOM_SRC_DIR/aom \ $BASE_DIR/$LIBAOM_SRC_DIR/aom_dsp \ - -name $file + $BASE_DIR/$LIBAOM_SRC_DIR/av1 \ + -name $file\.* done exit 1 fi |