mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
6fdd35a312
* commit '92db5083077a8b0f8e1050507671b456fd155125': build: Generate pkg-config files from Make and not from configure build: Store library version numbers in .version files Includes cherry-picked commits8a34f36593
andee164727dd
to fix issues. Changes were also made to retain support for raise_major and build_suffix. Reviewed-by: ubitux Merged-by: James Almer <jamrial@gmail.com>
16 lines
566 B
Bash
Executable File
16 lines
566 B
Bash
Executable File
toupper(){
|
|
echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
}
|
|
|
|
name=lib$1
|
|
ucname=$(toupper ${name})
|
|
file=$2
|
|
raise_major=$3
|
|
|
|
eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
|
|
eval ${ucname}_VERSION_MAJOR=$((${ucname}_VERSION_MAJOR+${raise_major}))
|
|
eval ${ucname}_VERSION=\$${ucname}_VERSION_MAJOR.\$${ucname}_VERSION_MINOR.\$${ucname}_VERSION_MICRO
|
|
eval echo "${name}_VERSION=\$${ucname}_VERSION"
|
|
eval echo "${name}_VERSION_MAJOR=\$${ucname}_VERSION_MAJOR"
|
|
eval echo "${name}_VERSION_MINOR=\$${ucname}_VERSION_MINOR"
|