github.com/rumpl/bof@v23.0.0-rc.2+incompatible/hack/make/.go-autogen (about)

     1  #!/usr/bin/env bash
     2  
     3  LDFLAGS="${LDFLAGS} \
     4  	-X \"github.com/docker/docker/dockerversion.Version=${VERSION}\" \
     5  	-X \"github.com/docker/docker/dockerversion.GitCommit=${GITCOMMIT}\" \
     6  	-X \"github.com/docker/docker/dockerversion.BuildTime=${BUILDTIME}\" \
     7  	-X \"github.com/docker/docker/dockerversion.PlatformName=${PLATFORM}\" \
     8  	-X \"github.com/docker/docker/dockerversion.ProductName=${PRODUCT}\" \
     9  	-X \"github.com/docker/docker/dockerversion.DefaultProductLicense=${DEFAULT_PRODUCT_LICENSE}\" \
    10  "
    11  
    12  # Compile the Windows resources into the sources
    13  if [ "$(go env GOOS)" = "windows" ]; then
    14    if [ ! -x "$(command -v go-winres)" ]; then
    15      >&2 echo "go-winres not found, skipping manifesting binary"
    16    else
    17      (
    18        . hack/make/.mkwinres
    19        go generate -v "${GO_PACKAGE}"
    20      )
    21    fi
    22  fi