Additionally, add a script used for making the source file list easier to populate as new codecs are added.epel9
parent
dab172bcf5
commit
45f894ec0e
@ -0,0 +1,72 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Script to identify trivial new headers for new sources added
|
||||||
|
# Requires: bash, coreutils, tar, xz
|
||||||
|
# Author: Neal Gompa <ngompa@fedoraproject.org>
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
FFMPEG_VERSION=$1
|
||||||
|
FF_SRC_DIFF=$2
|
||||||
|
|
||||||
|
if [ -z $1 -o -z $2 ]; then
|
||||||
|
echo "No arguments provided, quitting!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Setting up..."
|
||||||
|
# Get local directory
|
||||||
|
LOCALDIR=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
# Create working area
|
||||||
|
TMPDIR=$(mktemp -d /tmp/ffsrchdrsXXXXXX)
|
||||||
|
mkdir -pv $TMPDIR
|
||||||
|
|
||||||
|
# Extract ffmpeg sources
|
||||||
|
if [ ! -f "ffmpeg-${FFMPEG_VERSION}.tar.xz" ]; then
|
||||||
|
echo "No ffmpeg tarball, exiting!"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
if [ ! -f "$FF_SRC_DIFF" ]; then
|
||||||
|
echo "No ffmpeg sources diff, exiting!"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
echo "Extracting upstream ffmpeg sources..."
|
||||||
|
tar -C ${TMPDIR} -xf ffmpeg-${FFMPEG_VERSION}.tar.xz
|
||||||
|
|
||||||
|
echo "Generating header list from diff..."
|
||||||
|
# Read in ffmpeg_free_sources diff
|
||||||
|
while IFS= read -r line
|
||||||
|
do
|
||||||
|
if [[ $line = \+* ]]; then
|
||||||
|
ffmpeg_src_file="${line:1}"
|
||||||
|
if [ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_src_file}" ]; then
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}_cb.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}data.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}_data.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}_tablegen.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done < <(cat $FF_SRC_DIFF)
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
echo "Clean up workspace..."
|
||||||
|
rm -rf ${TMPDIR}
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
SHA512 (ffmpeg-free-5.1.2.tar.xz) = ed718699a4b134942985741dab9d3fc14490c0e3035d90b64710a3be9e1df0f542cd6e618dde3d3a951201a2e17e5135e7f4c631cc781b1627e798532ca74800
|
SHA512 (ffmpeg-free-5.1.2.tar.xz) = 91c4d86801cbd5dc69cb12b795bf36ff9a5e3d5d78a65e3d3efb65f24491587ec0605d4c54e326ef389945fc904da9073ad8406ef6937408b8d0f816792df678
|
||||||
SHA512 (ffmpeg-5.1.2.tar.xz.asc) = 6afc898e3898a7d34e21f0f0bd0553765a46257332c6ece6226e3e043b842275a8d885b9ccca34bc90a2f008ae5fa14515276d23f921a518a63a47f6504af115
|
SHA512 (ffmpeg-5.1.2.tar.xz.asc) = 6afc898e3898a7d34e21f0f0bd0553765a46257332c6ece6226e3e043b842275a8d885b9ccca34bc90a2f008ae5fa14515276d23f921a518a63a47f6504af115
|
||||||
SHA512 (ffmpeg-dlopen-headers.tar.xz) = 97e6986fc2bb9dfa4516135a76b04d27ceb52ff96f0af21a6169919aeefefb4d2e2e24a771959689cdbec385f5d71614ba661223c67c0e94089a6dd823a30099
|
SHA512 (ffmpeg-dlopen-headers.tar.xz) = 97e6986fc2bb9dfa4516135a76b04d27ceb52ff96f0af21a6169919aeefefb4d2e2e24a771959689cdbec385f5d71614ba661223c67c0e94089a6dd823a30099
|
||||||
SHA512 (ffmpeg.keyring) = 9b36506835db36f776b7ddb53ad6fa9e915e6ca2f9c7cfebe8eb45513e1036a985283590a840ca313a111bf35dc3731f68885aaafb1fb7011ec433cc119e5165
|
SHA512 (ffmpeg.keyring) = 9b36506835db36f776b7ddb53ad6fa9e915e6ca2f9c7cfebe8eb45513e1036a985283590a840ca313a111bf35dc3731f68885aaafb1fb7011ec433cc119e5165
|
||||||
|
Loading…
Reference in new issue