Bug 1627646 - Avoid creating a Port object when there are no listeners r=mixedpuppy
[gecko.git] / third_party / msgpack / update.sh
blobe6f37de3da75ebe1e07888a2d4861a9ac33a3ee3
1 #!/bin/sh
3 # Script to update the mozilla in-tree copy of the msgpack library.
4 # Run this within the /third_party/msgpack directory of the source tree.
6 MY_TEMP_DIR=`mktemp -d -t msgpack_update.XXXXXX` || exit 1
8 COMMIT="b6803a5fecbe321458faafd6a079dac466614ff9"
10 git clone -n https://github.com/msgpack/msgpack-c ${MY_TEMP_DIR}/msgpack
11 git -C ${MY_TEMP_DIR}/msgpack checkout ${COMMIT}
13 VERSION=$(git -C ${MY_TEMP_DIR}/msgpack describe --tags)
14 perl -p -i -e "s/Current version: \S+ \[commit [0-9a-f]{40}\]/Current version: ${VERSION} [commit ${COMMIT}]/" README-mozilla;
15 FILES="src include"
17 for f in $FILES; do
18 rm -rf $f
19 mv ${MY_TEMP_DIR}/msgpack/$f $f
20 done
22 rm -rf ${MY_TEMP_DIR}
24 hg revert -r . moz.build
25 hg addremove .
27 echo "###"
28 echo "### Updated msgpack to $COMMIT."
29 echo "### Remember to verify and commit the changes to source control!"
30 echo "###"