diff options
author | Brad King <brad.king@kitware.com> | 2019-10-10 18:24:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-10 18:24:32 (GMT) |
commit | 1529f4a9308a1c808b5ac48083ca0c365c589021 (patch) | |
tree | e3d479368237a84fcec3e5be2d99cf8af39928b8 /Utilities | |
parent | afdb354ac77818604dfed8ef416031a12ab49a48 (diff) | |
download | CMake-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-x | Utilities/Release/push.bash | 3 |
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 |