media/kiss_fft/update.sh
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Mon, 22 Feb 2016 20:52:33 -0800
changeset 325574 f177f8ec083efc5ddb5d3c854ae7bb383b1b6a45
parent 137922 3f7d9ca669a8dc85a101f1e61b6ce4b6d15e6a9f
permissions -rwxr-xr-x
Bumping gaia.json for 2 gaia revision(s) a=gaia-bump ======== https://hg.mozilla.org/integration/gaia-central/rev/8c0f20540765 Author: Ricky Chien <rickychien@users.noreply.github.com> Desc: Merge pull request #34079 from rickychien/show-hint-after-load Bug 1250032 - [Marketplace] Hint should show after the app finish loading r=@luke-chang ======== https://hg.mozilla.org/integration/gaia-central/rev/8dd0b87892a1 Author: Ricky Chien <ricky060709@gmail.com> Desc: Bug 1250032 - [Marketplace] Hint should show after the app finish loading

# Usage: sh update.sh <upstream_src_directory>
set -e

if [ ! -d "$1" ]; then
  echo "Usage: ./update.sh /path/to/kiss_fft" > 2
  exit 1
fi

FILES="CHANGELOG \
       COPYING \
       README \
       README.simd \
       _kiss_fft_guts.h \
       kiss_fft.c \
       kiss_fft.h \
       tools/kiss_fftr.c \
       tools/kiss_fftr.h"

for file in $FILES; do
  cp "$1/$file" .
done

if [ -d "$1/.hg" ]; then
  rev=$(cd "$1" && hg log --template='{node}' -r `hg identify -i`)
fi

if [ -n "$rev" ]; then
  version=$rev
  sed -i.bak -e "/The hg revision ID used was/ s/[0-9a-f]\{40\}\./$version./" README_MOZILLA
  rm README_MOZILLA.bak
else
  echo "Remember to update README_MOZILLA with the version details."
fi