diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /media/kiss_fft/update.sh | |
parent | Initial commit. (diff) | |
download | firefox-esr-upstream.tar.xz firefox-esr-upstream.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'media/kiss_fft/update.sh')
-rwxr-xr-x | media/kiss_fft/update.sh | 34 |
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 0000000000..e11a7406d9 --- /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 + |