~ubuntu-branches/ubuntu/saucy/ec2-api-tools/saucy

« back to all changes in this revision

Viewing changes to bin/ec2mvolatt.cmd

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2012-08-01 09:56:45 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120801095645-3mdxanh3mo8jnprb
Tags: 1.6.1.1-0ubuntu1
* New upstream release (1.6.1.1). API version 2012-07-20.
  * New commands (added in 1.6.0.0): assign-private-ip-addresses
    attach-network-interface cancel-export-task create-instance-export-task
    create-network-interface delete-network-interface describe-export-tasks
    describe-network-interface-attribute describe-network-interfaces
    describe-volume-attribute describe-volume-status detach-network-interface
    enable-volume-io modify-network-interface-attribute
    modify-volume-attribute report-instance-status
    reset-network-interface-attribute unassign-private-ip-addresses 
* add watchfile

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=_%EC2_HOME%
 
16
 
 
17
if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
 
18
 
 
19
"%EC2_HOME:"=%\bin\ec2-cmd" ModifyVolumeAttribute %*
 
20
goto DONE
 
21
:HOME_MISSING
 
22
echo EC2_HOME is not set
 
23
exit /b 1
 
24
 
 
25
:DONE