From d9b67eba80f8b488c5b63dfe2859363b16af12d0 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Sat, 7 Dec 2024 10:10:16 +0000 Subject: [PATCH] Update publish_script to init all submodules (ref #4104) --- scripts/publish_release.sh | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/scripts/publish_release.sh b/scripts/publish_release.sh index 3a3006e41..9d6a9eab6 100755 --- a/scripts/publish_release.sh +++ b/scripts/publish_release.sh @@ -57,11 +57,27 @@ step "Checking out ${MAPNIK_VERSION}" git checkout "tags/${MAPNIK_VERSION}" step "checking submodules" -step "vendorizing and cleaning up mapbox variant" +step "vendorizing and cleaning up" git submodule update --init deps/mapbox/variant -rm -rf deps/mapbox/variant/.git +git submodule update --init deps/mapbox/geometry +git submodule update --init deps/mapbox/polylabel +git submodule update --init deps/mapbox/protozero + +rm -rf deps/mapbox/variant/.git* +rm -rf deps/mapbox/variant/.mason rm -f deps/mapbox/variant/*yml rm -f deps/mapbox/variant/Jamroot +rm -f deps/mapbox/variant/.travis.yml + +rm -rf deps/mapbox/geometry/.git* +rm -f deps/mapbox/geometry/.travis.yml + +rm -rf deps/mapbox/polylabel/.git* +rm -rf deps/mapbox/polylabel/.mason +rm -f deps/mapbox/polylabel/.travis.yml + +rm -rf deps/mapbox/protozero/.git* +rm -f deps/mapbox/protozero/.travis.yml function check_and_tag() { REPO_DIR=$1 @@ -88,14 +104,14 @@ check_and_tag test/data test-data # test data visual check_and_tag test/data-visual test-data-visual -step "removing .git and .gitignore" -rm -rf .git -rm -rf .gitignore +step "removing .git and .gitignore etc" +rm -rf .git* export TARBALL_COMPRESSED=${TARBALL_NAME}.tar.bz2 echo ${MAPNIK_VERSION} > RELEASE_VERSION.md step "creating tarball of ${TARBALL_COMPRESSED}" cd ../ tar cjf ${TARBALL_COMPRESSED} ${TARBALL_NAME}/ + step "uploading to github" # https://developer.github.com/v3/repos/rseleases/#create-a-release IS_PRERELEASE=false