File: update-deepcopy-gen.sh

package info (click to toggle)
golang-github-kong-go-kong 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 620 kB
  • sloc: sh: 18; makefile: 4
file content (16 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -e
VERSION="kubernetes-1.18.2"

if [[ ! -d /tmp/code-generator ]];
then
  git clone https://github.com/kubernetes/code-generator.git  /tmp/code-generator
  pushd /tmp/code-generator
  git checkout $VERSION
  popd
fi
/tmp/code-generator/generate-groups.sh \
deepcopy \
github.com/kong/go-kong/kong \
github.com/kong \
go-kong:kong \
--go-header-file hack/header-template.go.tmpl