6bdd276d05
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
33 lines
882 B
Bash
Executable File
33 lines
882 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export AzureAccount=
|
|
export AzureToken=
|
|
export Container=
|
|
|
|
while [ "$1" != "" ]; do
|
|
lowerI="$(echo $1 | awk '{print tolower($0)}')"
|
|
case $lowerI in
|
|
-azureaccount)
|
|
shift
|
|
export AzureAccount=$1
|
|
;;
|
|
-azuretoken)
|
|
shift
|
|
export AzureToken=$1
|
|
;;
|
|
-container)
|
|
shift
|
|
export Container=$1
|
|
;;
|
|
*)
|
|
echo Bad argument $1
|
|
exit 1
|
|
esac
|
|
shift
|
|
done
|
|
|
|
# don't pass args to buildvars-setup, just get defaults
|
|
scriptRoot="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
. $scriptRoot/buildvars-setup.sh
|
|
|
|
$__ProjectRoot/Tools/msbuild.sh $scriptRoot/publish.proj /p:CloudDropAccountName=$AzureAccount /p:CloudDropAccessToken=$AzureToken /p:ContainerName=$Container "/flp:v=diag;LogFile=publish-packages.log" |