diff options
author | Mans Rullgard <mans@mansr.com> | 2012-10-13 22:56:25 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-10-15 17:46:18 +0100 |
commit | 4c995fafd861f537360b3717901cdbed6a6844e7 (patch) | |
tree | fe1d8550017a70ec59599121f5e4a4ff0afa7744 /configure | |
parent | 0fbb62a8e6c6f0b431f736eed1da2cc649253f27 (diff) | |
download | ffmpeg-4c995fafd861f537360b3717901cdbed6a6844e7.tar.gz |
configure: simplify get_version() function
awk alone can do this, no need for grep.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3774,7 +3774,7 @@ get_version(){ lcname=$1 name=$(toupper $lcname) file=$source_path/$lcname/version.h - eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }') + eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file") eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak |