diff options
author | Brad King <brad.king@kitware.com> | 2022-01-12 21:13:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-12 21:13:56 (GMT) |
commit | d03091edad1040707ce310589286cadff495d5bf (patch) | |
tree | 73fdad349534466656f6a5981e7d6a176aa07d54 /Utilities | |
parent | 0c038689be424ca71a6699a993adde3bcaa15b6c (diff) | |
download | CMake-d03091edad1040707ce310589286cadff495d5bf.zip CMake-d03091edad1040707ce310589286cadff495d5bf.tar.gz CMake-d03091edad1040707ce310589286cadff495d5bf.tar.bz2 |
pdcurses: Add script to import PDCurses from upstream
Diffstat (limited to 'Utilities')
-rwxr-xr-x | Utilities/Scripts/update-pdcurses.bash | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-pdcurses.bash b/Utilities/Scripts/update-pdcurses.bash new file mode 100755 index 0000000..b1a2815 --- /dev/null +++ b/Utilities/Scripts/update-pdcurses.bash @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -e +set -x +shopt -s dotglob + +readonly name="PDCurses" +readonly ownership="PDCurses Upstream <kwrobot@kitware.com>" +readonly subtree="Utilities/cmpdcurses" +readonly repo="https://github.com/wmcbrine/PDCurses.git" +readonly tag="f1cd4f4569451a5028ddf3d3c202f0ad6b1ae446" +readonly shortlog=false +readonly paths=" + README.md + *.h + common/acs437.h + common/acsuni.h + pdcurses/README.md + pdcurses/*.c + wincon/README.md + wincon/*.c + wincon/*.h +" + +extract_source () { + git_archive + pushd "${extractdir}/${name}-reduced" + echo "* -whitespace" > .gitattributes + popd +} + +. "${BASH_SOURCE%/*}/update-third-party.bash" |