summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts/update-libuv.bash
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-16 20:19:43 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-31 12:53:38 (GMT)
commit3800fc299fe7703c4a3976f9ba9028e1ebeb3d3e (patch)
treea75ea0d4d964b9f38b33b53187dec527f529122b /Utilities/Scripts/update-libuv.bash
parent98caa14cc84cc659c2c5b51f84c6547b57c89c30 (diff)
downloadCMake-3800fc299fe7703c4a3976f9ba9028e1ebeb3d3e.zip
CMake-3800fc299fe7703c4a3976f9ba9028e1ebeb3d3e.tar.gz
CMake-3800fc299fe7703c4a3976f9ba9028e1ebeb3d3e.tar.bz2
Add script to update libuv from upstream
Diffstat (limited to 'Utilities/Scripts/update-libuv.bash')
-rwxr-xr-xUtilities/Scripts/update-libuv.bash26
1 files changed, 26 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-libuv.bash b/Utilities/Scripts/update-libuv.bash
new file mode 100755
index 0000000..d7a7d1f
--- /dev/null
+++ b/Utilities/Scripts/update-libuv.bash
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+set -e
+set -x
+shopt -s dotglob
+
+readonly name="libuv"
+readonly ownership="libuv upstream <libuv@googlegroups.com>"
+readonly subtree="Utilities/cmlibuv"
+readonly repo="https://github.com/libuv/libuv.git"
+readonly tag="v1.x"
+readonly shortlog=false
+readonly paths="
+ LICENSE
+ include
+ src
+"
+
+extract_source () {
+ git_archive
+ pushd "${extractdir}/${name}-reduced"
+ echo "* -whitespace" > .gitattributes
+ popd
+}
+
+. "${BASH_SOURCE%/*}/update-third-party.bash"