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

« back to all changes in this revision

Viewing changes to bin/ec2addpgrp.cmd

  • Committer: Scott Moser
  • Date: 2010-07-13 15:30:36 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: smoser@ubuntu.com-20100713153036-fs61t8q5nzs1wlkk
New upstream release.  Support "Cluster Compute" instances

More info:
  http://aws.typepad.com/aws/2010/07/the-new-amazon-ec2-instance-type-the-cluster-compute-instance.html
  http://aws.amazon.com/ec2/hpc-applications/

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" CreatePlacementGroup %*
 
20
goto DONE
 
21
:HOME_MISSING
 
22
echo EC2_HOME is not set
 
23
exit /b 1
 
24
 
 
25
:DONE