~ubuntu-on-ec2/vmbuilder/ec2-finder-opening-groovy

« back to all changes in this revision

Viewing changes to gen-table.sh

  • Committer: Robert C Jennings
  • Date: 2016-11-06 21:01:10 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: robert.jennings@canonical.com-20161106210110-zjtn92d0gp72hcn2
Remove listings for unsupported releases (LP: #1637798)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
suite2version() {
9
9
    case $1 in
10
 
        karmic)      echo "9.10 EOL";;
11
 
        hardy)       echo "8.04 LTS";;
12
 
        lucid)       echo "10.04 LTS";;
13
 
        maverick)    echo "10.10 EOL";;
14
 
        natty)       echo "11.04 EOL";;
15
 
        oneiric)     echo "11.10 EOL";;
16
10
        precise)     echo "12.04 LTS";;
17
 
        quantal)     echo "12.10 EOL";;
18
 
        raring)      echo "13.04 EOL";;
19
 
        saucy)       echo "13.10 EOL";;
20
11
        trusty)      echo "14.04 LTS";;
21
 
        utopic)      echo "14.10 EOL";;
22
 
        vivid)       echo "15.04 EOL";;
23
 
        wily)        echo "15.10 EOL";;
24
12
        xenial)      echo "16.04 LTS";;
25
13
        yakkety)     echo "16.10";;
26
14
        zesty)       echo "17.04";;
27
 
        *) echo "Devel";;
 
15
        *)           echo "unsupported";;
28
16
    esac
29
17
}
30
18
 
33
21
    while read suite stream tag serial itype arch region ami aki virttype
34
22
    do
35
23
        version=$(suite2version ${suite})
 
24
        if [ "${version}" == "unsupported" ]; then
 
25
            continue
 
26
        fi
36
27
        [ "${aki}" == "hvm" ] && itype="hvm:${itype}"
37
28
 
38
29
        console="console.aws.amazon.com"