~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/juju/govmomi/gen/gen.sh

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# Copyright (c) 2014 VMware, Inc. All Rights Reserved.
 
4
#
 
5
# Licensed under the Apache License, Version 2.0 (the "License");
 
6
# you may not use this file except in compliance with the License.
 
7
# You may obtain a copy of the License at
 
8
#
 
9
#     http://www.apache.org/licenses/LICENSE-2.0
 
10
#
 
11
# Unless required by applicable law or agreed to in writing, software
 
12
# distributed under the License is distributed on an "AS IS" BASIS,
 
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
# See the License for the specific language governing permissions and
 
15
# limitations under the License.
 
16
 
 
17
set -e
 
18
 
 
19
dst=../vim25
 
20
 
 
21
pkgs=$(echo $dst/{types,methods,mo})
 
22
mkdir -p $pkgs
 
23
 
 
24
bundle exec ruby gen_from_wsdl.rb $dst
 
25
bundle exec ruby gen_from_vmodl.rb $dst
 
26
 
 
27
for p in $pkgs
 
28
do
 
29
  echo $p
 
30
  cd $p
 
31
  goimports -w *.go
 
32
  go install
 
33
  cd -
 
34
done