Skip to content

Commit b12ac06

Browse files
committed
ENH: itkexpat: Add script to import from upstream
Import version 2.7.2 to match what was last manually imported by commit commit fbee641 (ENH: Update to expat 2.7.2 code changes, 2025-09-19).
1 parent 20fd88b commit b12ac06

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
shopt -s dotglob
6+
7+
readonly name="expat"
8+
readonly ownership="Expat Upstream <kwrobot@kitware.com>"
9+
readonly subtree="Modules/ThirdParty/Expat/src/itk$name"
10+
readonly repo="https://github.com/libexpat/libexpat.git"
11+
readonly tag="R_2_7_2"
12+
readonly paths="
13+
expat/CMakeLists.txt
14+
expat/ConfigureChecks.cmake
15+
expat/COPYING
16+
expat/expat_config.h.cmake
17+
18+
expat/lib/*.h
19+
expat/lib/*.c
20+
"
21+
22+
extract_source () {
23+
git_archive
24+
pushd "${extractdir}/${name}-reduced"
25+
echo "* -whitespace" >> .gitattributes
26+
mv expat/* .
27+
rmdir expat
28+
fromdos ConfigureChecks.cmake CMakeLists.txt expat_config.h.cmake
29+
chmod a-x ConfigureChecks.cmake CMakeLists.txt expat_config.h.cmake
30+
popd
31+
}
32+
33+
. "${BASH_SOURCE%/*}/../../../Utilities/Maintenance/update-third-party.bash"

0 commit comments

Comments
 (0)