Skip to content

Clu #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 18, 2015
Merged

Clu #256

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added tools/CLU/7-Zip/7-zip.dll
Binary file not shown.
Binary file added tools/CLU/7-Zip/7-zip32.dll
Binary file not shown.
Binary file added tools/CLU/7-Zip/7z.dll
Binary file not shown.
Binary file added tools/CLU/7-Zip/7z.exe
Binary file not shown.
56 changes: 56 additions & 0 deletions tools/CLU/7-Zip/License.txt
Original file line number Diff line number Diff line change
@@ -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
Binary file added tools/CLU/AzCopy/AzCopy.exe
Binary file not shown.
Binary file added tools/CLU/AzCopy/Microsoft.Data.Edm.dll
Binary file not shown.
Binary file added tools/CLU/AzCopy/Microsoft.Data.OData.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added tools/CLU/AzCopy/Newtonsoft.Json.dll
Binary file not shown.
Binary file added tools/CLU/AzCopy/System.Spatial.dll
Binary file not shown.
8 changes: 3 additions & 5 deletions tools/CLU/SetupEnv.bat
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
echo off
setlocal
set root=%~dp0..\..
set CLUROOT=%~dp0..\..

REM build cmdlets packages
set DebugCLU=
call %~dp0\BuildAndInstallClu.bat
set Path=%Path%;%root%\drop\clurun\win7-x64
set Path=%Path%;%CLUROOT%\drop\clurun\win7-x64
REM run 'azure help' to verify all are wired up
azure.bat help
if ERRORLEVEL 1 (
echo Build and deploy clu package failed
exit /B 1
)
)
set DebugCLU=1

43 changes: 43 additions & 0 deletions tools/CLU/UploadOrDownloadInstaller.bat
Original file line number Diff line number Diff line change
@@ -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
)
)