update-expat.bash 1.14 KB
Newer Older
1 2 3 4 5 6 7 8 9
#!/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"
10
readonly repo="https://github.com/libexpat/libexpat.git"
11
readonly tag="R_2_2_9"
12 13 14 15 16 17 18 19 20 21 22 23 24
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
25
  expat/lib/siphash.h
26 27 28 29 30 31 32
  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
33
  expat/README.md
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  expat/ConfigureChecks.cmake
  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"