summaryrefslogtreecommitdiffstats
path: root/third_party/aom/build/make/version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/build/make/version.sh')
-rwxr-xr-xthird_party/aom/build/make/version.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/aom/build/make/version.sh b/third_party/aom/build/make/version.sh
index c0eef9f58..2a7090e4d 100755
--- a/third_party/aom/build/make/version.sh
+++ b/third_party/aom/build/make/version.sh
@@ -28,13 +28,14 @@ if [ -e "${source_path}/.git" ]; then
# Source Path is a git working copy. Check for local modifications.
# Note that git submodules may have a file as .git, not a directory.
export GIT_DIR="${source_path}/.git"
- git_version_id=`git describe --match=v[0-9]* 2>/dev/null`
+ git_version_id=$(git describe --match=v[0-9]* 2>/dev/null)
fi
changelog_version=""
for p in "${source_path}" "${source_path}/.."; do
if [ -z "$git_version_id" -a -f "${p}/CHANGELOG" ]; then
- changelog_version=`head -n1 "${p}/CHANGELOG" | awk '{print $2}'`
+ changelog_version=$(grep -m 1 " v[0-9]" "${p}/CHANGELOG" \
+ | awk '{print $2}')
changelog_version="${changelog_version}"
break
fi