Bug 945419 - Use upstream opus git version format. r=derf
authorRalph Giles <giles@mozilla.com>
Mon, 02 Dec 2013 14:59:00 -0800
changeset 174602 f3161ee517132587ec6889500e1df46c09a58749
parent 174601 39a0ab97012e5ceb6cf2efb39767532c6396c981
child 174603 82969423bfb6ca8a02c4223bc9f4563a76427107
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersderf
bugs945419
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 945419 - Use upstream opus git version format. r=derf We only want tags which match the release naming convention, and --dirty is very important for catching local changes.
media/libopus/update.sh
--- a/media/libopus/update.sh
+++ b/media/libopus/update.sh
@@ -46,17 +46,17 @@ done
 for file in ${STATIC_FILES} ${MK_FILES} ${SRC_FILES} ${HDR_FILES}; do
   cmd="cp $1/${file} ${TARGET}/${file}"
   echo ${cmd}
   ${cmd}
 done
 
 # query git for the revision we're copying from
 if test -d $1/.git; then
-  version=$(cd $1 && git describe --tags)
+  version=$(cd $1 && git describe --tags --match 'v*' --dirty)
 else
   version="UNKNOWN"
 fi
 echo "copied from revision ${version}"
 # update README revision
 sed -e "s/^The git tag\/revision used was .*/The git tag\/revision used was ${version}./" \
     ${TARGET}/README_MOZILLA > ${TARGET}/README_MOZILLA+ && \
     mv ${TARGET}/README_MOZILLA+ ${TARGET}/README_MOZILLA