summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-10 18:24:32 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-10 18:24:32 (GMT)
commit1529f4a9308a1c808b5ac48083ca0c365c589021 (patch)
treee3d479368237a84fcec3e5be2d99cf8af39928b8 /Utilities
parentafdb354ac77818604dfed8ef416031a12ab49a48 (diff)
downloadCMake-1529f4a9308a1c808b5ac48083ca0c365c589021.zip
CMake-1529f4a9308a1c808b5ac48083ca0c365c589021.tar.gz
CMake-1529f4a9308a1c808b5ac48083ca0c365c589021.tar.bz2
Utilities/Release: Teach "push" script to create destination subdirectory
Extend the script added by commit 9bf97363b0 (Utilities/Release: Replace upload step with a "push" script, 2019-05-24, v3.15.0-rc1~56^2) to create the destination subdirectory for the CMake version being pushed.
Diffstat (limited to 'Utilities')
-rwxr-xr-xUtilities/Release/push.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/Release/push.bash b/Utilities/Release/push.bash
index 1c8efe9..a1c6651 100755
--- a/Utilities/Release/push.bash
+++ b/Utilities/Release/push.bash
@@ -50,6 +50,9 @@ if test -z "$dir"; then
dir="v${version}"
fi
readonly dir
+if ! test -d "${dest}/${dir}"; then
+ mkdir "${dest}/${dir}"
+fi
for f in cmake-${version}*; do
if ! test -f "${f}"; then