mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 16:47:29 +09:00
[av1] Clean up duplicate filenames check
This commit is contained in:
parent
ecc55bc615
commit
42b95d2649
1 changed files with 7 additions and 8 deletions
|
|
@ -29,24 +29,23 @@ function write_license {
|
||||||
# The build does not support duplicate file names.
|
# The build does not support duplicate file names.
|
||||||
function find_duplicates {
|
function find_duplicates {
|
||||||
local readonly duplicate_file_names=$(find \
|
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 \
|
||||||
$BASE_DIR/$LIBAOM_SRC_DIR/aom_dsp \
|
$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
|
if [ -n "${duplicate_file_names}" ]; then
|
||||||
echo "ERROR: DUPLICATE FILES FOUND"
|
echo "ERROR: DUPLICATE FILES FOUND"
|
||||||
for file in ${duplicate_file_names}; do
|
for file in ${duplicate_file_names}; do
|
||||||
find \
|
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 \
|
||||||
$BASE_DIR/$LIBAOM_SRC_DIR/aom_dsp \
|
$BASE_DIR/$LIBAOM_SRC_DIR/aom_dsp \
|
||||||
-name $file
|
$BASE_DIR/$LIBAOM_SRC_DIR/av1 \
|
||||||
|
-name $file\.*
|
||||||
done
|
done
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue