~awstools-dev/ubuntu/quantal/iamcli/quantal

« back to all changes in this revision

Viewing changes to bin/iam-accountgetsummary.cmd

  • Committer: Scott Moser
  • Date: 2011-04-05 18:41:55 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: smoser@ubuntu.com-20110405184155-lz53krlcgvkib49w
Tags: upstream-1.2.0
ImportĀ upstreamĀ versionĀ 1.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@echo off
 
2
 
 
3
setlocal
 
4
 
 
5
REM Copyright 2006-2010 Amazon.com, Inc. or its affiliates.  All Rights Reserved.  Licensed under the
 
6
REM Amazon Software License (the "License").  You may not use this file except in compliance with the License. A copy of the
 
7
REM License is located at http://aws.amazon.com/asl or in the "license" file accompanying this file.  This file is distributed on an "AS
 
8
REM IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
 
9
REM language governing permissions and limitations under the License.
 
10
 
 
11
REM Set intermediate env vars because the %VAR:x=y% notation below
 
12
REM (which replaces the string x with the string y in VAR)
 
13
REM doesn't handle undefined environment variables. This way
 
14
REM we're always dealing with defined variables in those tests.
 
15
set CHK_HOME=_%AWS_IAM_HOME%
 
16
 
 
17
if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
 
18
 
 
19
"%AWS_IAM_HOME:"=%\bin\iam-cmd" AccountGetSummaryView %*
 
20
goto DONE
 
21
:HOME_MISSING
 
22
echo AWS_IAM_HOME is not set
 
23
exit /b 1
 
24
 
 
25
:DONE