~ubuntu-branches/ubuntu/raring/cloud-utils/raring-201302042112

« back to all changes in this revision

Viewing changes to bin/ubuntu-cloudimg-query

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2012-07-12 13:38:44 UTC
  • Revision ID: package-import@ubuntu.com-20120712133844-m1pfam3g20h74oyq
Tags: 0.25-0ubuntu6
* Sync to upstream trunk at revision 188
  * adds cloudimg-sync and ubuntu-cloudimg-query2 [Ben Howard]
* debian/control: run wrap-and-sort 

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
subst() {
86
86
        local cur="$1"; shift;
87
87
        while [ $# -ne 0 ]; do
88
 
      while [ "${cur#*${1}}" != "${cur}" ]; do
89
 
         cur="${cur%%${1}*}${2}${cur#*${1}}"
90
 
      done
 
88
                while [ "${cur#*${1}}" != "${cur}" ]; do
 
89
                        cur="${cur%%${1}*}${2}${cur#*${1}}"
 
90
                done
91
91
                shift 2
92
92
        done
93
93
        _RET=${cur}
142
142
ptype="paravirtual"
143
143
poss_release=""
144
144
itypes=""
 
145
itypes_i386="m1.small c1.medium m1.medium"
 
146
itypes_amd64="${itypes_i386} m1.large m1.xlarge m2.xlarge m2.2xlarge m2.4xlarge c1.xlarge"
145
147
 
146
148
while [ $# -ne 0 ]; do
147
149
        cur=${1}; next=${2};
249
251
 
250
252
case "$arch:$store:$ptype" in
251
253
        *:hvm) itypes_all="cc1.4xlarge cg1.4xlarge cc2.8xlarge";;
252
 
        i386:*) itypes_all="m1.small c1.medium";;
253
 
        amd64:*) itypes_all="m1.large m1.xlarge m2.xlarge m2.2xlarge m2.4xlarge c1.xlarge";;
 
254
        i386:*) itypes_all="${itypes_i386}";;
 
255
        amd64:*) itypes_all="${itypes_amd64}";;
254
256
esac
255
257
[ "$store" = "ebs" -a "$ptype" != "hvm" ] && itypes_all="t1.micro $itypes_all"
256
258
itypes=""