summaryrefslogtreecommitdiffstats
path: root/modules/xz-embedded/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 /modules/xz-embedded/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 'modules/xz-embedded/update.sh')
-rwxr-xr-xmodules/xz-embedded/update.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/xz-embedded/update.sh b/modules/xz-embedded/update.sh
new file mode 100755
index 000000000..ecc1e3610
--- /dev/null
+++ b/modules/xz-embedded/update.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# Script to update the Mozilla in-tree copy of XZ Embedded.
+
+MY_TEMP_DIR=$(mktemp -d -t xz-embedded_update.XXXXXX) || exit 1
+
+git clone http://git.tukaani.org/xz-embedded.git ${MY_TEMP_DIR}/xz-embedded
+
+COMMIT=$(git -C ${MY_TEMP_DIR}/xz-embedded rev-parse HEAD)
+cd $(dirname $0)
+perl -p -i -e "s/\[commit [0-9a-f]{40}\]/[${COMMIT}]/" README.mozilla;
+
+rm -rf src
+mkdir src
+mv ${MY_TEMP_DIR}/xz-embedded/userspace/xz_config.h src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/include/linux/xz.h src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_private.h src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_lzma2.h src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_stream.h src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_crc32.c src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_crc64.c src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_dec_bcj.c src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_dec_stream.c src/
+mv ${MY_TEMP_DIR}/xz-embedded/linux/lib/xz/xz_dec_lzma2.c src/
+rm -rf ${MY_TEMP_DIR}
+hg addremove src
+
+echo "###"
+echo "### Updated xz-embedded/src to $COMMIT."
+echo "### Remember to verify and commit the changes to source control!"
+echo "###"