| 1 |
// Copyright 2017 The go-libvirt Authors. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Package lvgen contains the instructions for regenerating the libvirt |
| 16 |
// bindings. We do this by parsing the remote_protocol.x file included in the |
| 17 |
// libvirt sources. Bindings will be generated if you run `go generate` in this |
| 18 |
// directory. |
| 19 |
package lvgen |
| 20 |
|
| 21 |
// Before running `go generate`: |
| 22 |
// 1) Make sure goyacc is installed from golang.org/x/tools (you can use this |
| 23 |
// command: `go get golang.org/x/tools/...`) |
| 24 |
// 2) Set the environment variable LIBVIRT_SOURCE to point to the top level |
| 25 |
// directory containing the version of libvirt for which you want to generate |
| 26 |
// bindings. |
| 27 |
|
| 28 |
//go:generate goyacc sunrpc.y |
| 29 |
//go:generate go run gen/main.go |