diff --git a/tools/CLU/7-Zip/7-zip.dll b/tools/CLU/7-Zip/7-zip.dll new file mode 100644 index 000000000000..5cdb07977e2f Binary files /dev/null and b/tools/CLU/7-Zip/7-zip.dll differ diff --git a/tools/CLU/7-Zip/7-zip32.dll b/tools/CLU/7-Zip/7-zip32.dll new file mode 100644 index 000000000000..f6bcb3f0095a Binary files /dev/null and b/tools/CLU/7-Zip/7-zip32.dll differ diff --git a/tools/CLU/7-Zip/7z.dll b/tools/CLU/7-Zip/7z.dll new file mode 100644 index 000000000000..2499094f5fae Binary files /dev/null and b/tools/CLU/7-Zip/7z.dll differ diff --git a/tools/CLU/7-Zip/7z.exe b/tools/CLU/7-Zip/7z.exe new file mode 100644 index 000000000000..217c6576f069 Binary files /dev/null and b/tools/CLU/7-Zip/7z.exe differ diff --git a/tools/CLU/7-Zip/License.txt b/tools/CLU/7-Zip/License.txt new file mode 100644 index 000000000000..a3cc41284b8b --- /dev/null +++ b/tools/CLU/7-Zip/License.txt @@ -0,0 +1,56 @@ + 7-Zip + ~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 7-Zip Copyright (C) 1999-2015 Igor Pavlov. + + Licenses for files are: + + 1) 7z.dll: GNU LGPL + unRAR restriction + 2) All other files: GNU LGPL + + The GNU LGPL + unRAR restriction means that you must follow both + GNU LGPL rules and unRAR restriction rules. + + + Note: + You can use 7-Zip on any computer, including a computer in a commercial + organization. You don't need to register or pay for 7-Zip. + + + GNU LGPL information + -------------------- + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You can receive a copy of the GNU Lesser General Public License from + http://www.gnu.org/ + + + unRAR restriction + ----------------- + + The decompression engine for RAR archives was developed using source + code of unRAR program. + All copyrights to original unRAR code are owned by Alexander Roshal. + + The license for original unRAR code has the following restriction: + + The unRAR sources cannot be used to re-create the RAR compression algorithm, + which is proprietary. Distribution of modified unRAR sources in separate form + or as a part of other software is permitted, provided that it is clearly + stated in the documentation and source comments that the code may + not be used to develop a RAR (WinRAR) compatible archiver. + + + -- + Igor Pavlov diff --git a/tools/CLU/AzCopy/AzCopy.exe b/tools/CLU/AzCopy/AzCopy.exe new file mode 100644 index 000000000000..0247526a1c70 Binary files /dev/null and b/tools/CLU/AzCopy/AzCopy.exe differ diff --git a/tools/CLU/AzCopy/Microsoft.Data.Edm.dll b/tools/CLU/AzCopy/Microsoft.Data.Edm.dll new file mode 100644 index 000000000000..7b4d64537d38 Binary files /dev/null and b/tools/CLU/AzCopy/Microsoft.Data.Edm.dll differ diff --git a/tools/CLU/AzCopy/Microsoft.Data.OData.dll b/tools/CLU/AzCopy/Microsoft.Data.OData.dll new file mode 100644 index 000000000000..4b5667446292 Binary files /dev/null and b/tools/CLU/AzCopy/Microsoft.Data.OData.dll differ diff --git a/tools/CLU/AzCopy/Microsoft.Data.Services.Client.dll b/tools/CLU/AzCopy/Microsoft.Data.Services.Client.dll new file mode 100644 index 000000000000..28679b958021 Binary files /dev/null and b/tools/CLU/AzCopy/Microsoft.Data.Services.Client.dll differ diff --git a/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.DataMovement.dll b/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.DataMovement.dll new file mode 100644 index 000000000000..30dcb1b0a6af Binary files /dev/null and b/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.DataMovement.dll differ diff --git a/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.TableDataMovement.dll b/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.TableDataMovement.dll new file mode 100644 index 000000000000..f1991baad07e Binary files /dev/null and b/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.TableDataMovement.dll differ diff --git a/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.dll b/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.dll new file mode 100644 index 000000000000..e22b1552f017 Binary files /dev/null and b/tools/CLU/AzCopy/Microsoft.WindowsAzure.Storage.dll differ diff --git a/tools/CLU/AzCopy/Newtonsoft.Json.dll b/tools/CLU/AzCopy/Newtonsoft.Json.dll new file mode 100644 index 000000000000..71fd69e54932 Binary files /dev/null and b/tools/CLU/AzCopy/Newtonsoft.Json.dll differ diff --git a/tools/CLU/AzCopy/System.Spatial.dll b/tools/CLU/AzCopy/System.Spatial.dll new file mode 100644 index 000000000000..76722a0ade4e Binary files /dev/null and b/tools/CLU/AzCopy/System.Spatial.dll differ diff --git a/tools/CLU/UploadOrDownloadInstaller.bat b/tools/CLU/UploadOrDownloadInstaller.bat new file mode 100644 index 000000000000..52c2f00cd9cd --- /dev/null +++ b/tools/CLU/UploadOrDownloadInstaller.bat @@ -0,0 +1,43 @@ +echo off +setlocal enabledelayedexpansion +set root=%~dp0..\.. + +set action=%1 +set storageUrl=%2 +set key=%3 +set downloadFolder=%4 +set dropBaseName=ubuntu.14.04-x64 +set archiveFileName=%dropBaseName%.latest.tar +set archive=%root%\drop\%archiveFileName% + +if "%1" == "upload" ( + del /Q /F %root%\drop\*.gz + %~dp0\7-Zip\7z.exe a -ttar -so %archive% %root%\drop\clurun\ubuntu.14.04-x64 | %~dp0\7-Zip\7z.exe a -si %archive%.gz + if ERRORLEVEL 1 ( + echo failed to create tar.gz file "%archive%.gz" + exit /B 1 + ) + %~dp0\AzCopy\AzCopy.exe /Source:%root%\drop /Dest:%storageUrl% /DestKey:%key% /Pattern:%archiveFileName%.gz /Y + + if ERRORLEVEL 1 ( + echo failed to upload installers from "%root%\drop\%archiveFileName%.gz" to "%storageUrl%" + exit /B 1 + ) +) + +if "%1" == "download" ( + echo download the latest installer + %~dp0\AzCopy\AzCopy.exe /Source:%storageUrl% /SourceKey:%key% /Dest:%downloadFolder% /Pattern:%archiveFileName%.gz /Y /S + if ERRORLEVEL 1 ( + echo failed to download installers from "%storageUrl%" to "%downloadFolder%" + exit /B 1 + ) +) + +if not "%1" == "download" ( + if not "%1" == "upload" ( + echo Invalid command line arguments, examples + echo %0 upload storage-blob-url "storage-key" + echo %0 download storage-blob-url "storage-key" download-folder + ) +)