diff options
author | Brad King <brad.king@kitware.com> | 2016-05-05 18:19:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-05 18:42:12 (GMT) |
commit | f4bd9d43b8b38441a85ba952460afcae383fd695 (patch) | |
tree | 6270748d56f54e41b8b3a7e8ae055b654e638fc2 /Utilities/Scripts | |
parent | 7eb7a189631074567e6a803f6dd057e90800e186 (diff) | |
download | CMake-f4bd9d43b8b38441a85ba952460afcae383fd695.zip CMake-f4bd9d43b8b38441a85ba952460afcae383fd695.tar.gz CMake-f4bd9d43b8b38441a85ba952460afcae383fd695.tar.bz2 |
Add script to update Expat from upstream
Diffstat (limited to 'Utilities/Scripts')
-rwxr-xr-x | Utilities/Scripts/update-expat.bash | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-expat.bash b/Utilities/Scripts/update-expat.bash new file mode 100755 index 0000000..8a2a5fe --- /dev/null +++ b/Utilities/Scripts/update-expat.bash @@ -0,0 +1,49 @@ +#!/usr/bin/env bash + +set -e +set -x +shopt -s dotglob + +readonly name="expat" +readonly ownership="Expat Upstream <kwrobot@kitware.com>" +readonly subtree="Utilities/cmexpat" +readonly repo="http://git.code.sf.net/p/expat/code_git" +readonly tag="master" +readonly shortlog=false +readonly paths=" + expat/lib/asciitab.h + expat/lib/expat.h + expat/lib/xmltok.h + expat/lib/internal.h + expat/lib/xmlrole.h + expat/lib/iasciitab.h + expat/lib/latin1tab.h + expat/lib/xmlrole.c + expat/lib/utf8tab.h + expat/lib/nametab.h + expat/lib/ascii.h + expat/lib/xmltok_impl.h + expat/lib/xmltok_ns.c + expat/lib/winconfig.h + expat/lib/expat_external.h + expat/lib/xmltok.c + expat/lib/xmlparse.c + expat/lib/xmltok_impl.c + expat/README + expat/ConfigureChecks.cmake + expat/CMakeLists.txt + expat/expat_config.h.cmake + expat/COPYING +" + +extract_source () { + git_archive + pushd "${extractdir}/${name}-reduced" + fromdos expat/ConfigureChecks.cmake expat/CMakeLists.txt expat/expat_config.h.cmake + chmod a-x expat/ConfigureChecks.cmake expat/CMakeLists.txt expat/expat_config.h.cmake + mv expat/* . + rmdir expat + popd +} + +. "${BASH_SOURCE%/*}/update-third-party.bash" |