summaryrefslogtreecommitdiffstats
path: root/media/kiss_fft/update.sh
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/kiss_fft/update.sh
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/kiss_fft/update.sh')
-rwxr-xr-xmedia/kiss_fft/update.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/media/kiss_fft/update.sh b/media/kiss_fft/update.sh
new file mode 100755
index 000000000..e11a7406d
--- /dev/null
+++ b/media/kiss_fft/update.sh
@@ -0,0 +1,34 @@
+# 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
+