mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-13 03:46:34 +00:00
24 lines
429 B
Bash
Executable file
24 lines
429 B
Bash
Executable file
#! /bin/bash
|
|
|
|
set -eux
|
|
|
|
old_abi=${1}
|
|
output_dir=${2}
|
|
output_fail_file=${3}
|
|
upstream_branch=${GST_UPSTREAM_BRANCH:-}
|
|
|
|
module=$(basename ${old_abi})
|
|
|
|
opts="--drop-private-types"
|
|
if [ "x$upstream_branch" = "xmain" ]
|
|
then
|
|
# don't error out on added symbols
|
|
opts="${opts} --no-added-syms"
|
|
fi
|
|
|
|
mkdir -p ${output_dir}
|
|
if ! abidiff ${opts} ${old_abi} ${output_dir}/${module}
|
|
then
|
|
echo ${module} >> ${output_fail_file}
|
|
exit 1;
|
|
fi
|