~awstools-dev/ubuntu/raring/elbcli/raring

« back to all changes in this revision

Viewing changes to bin/elb-create-lb-policy.cmd

  • Committer: Scott Moser
  • Date: 2011-12-09 15:50:39 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: smoser@ubuntu.com-20111209155039-75f95q1frj35nqeu
Tags: upstream-1.0.15.1
ImportĀ upstreamĀ versionĀ 1.0.15.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@echo off
 
2
 
 
3
setlocal
 
4
 
 
5
REM Set intermediate env vars because the %VAR:x=y% notation below
 
6
REM (which replaces the string x with the string y in VAR)
 
7
REM doesn't handle undefined environment variables. This way
 
8
REM we're always dealing with defined variables in those tests.
 
9
set CHK_HOME=_%AWS_ELB_HOME%
 
10
 
 
11
if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
 
12
 
 
13
"%AWS_ELB_HOME:"=%\bin\elb-cmd.cmd" elb-create-lb-policy %*
 
14
goto DONE
 
15
:HOME_MISSING
 
16
echo AWS_ELB_HOME is not set
 
17
exit /b 1
 
18
 
 
19
:DONE