github.com/c-darwin/mobile@v0.0.0-20160313183840-ff625c46f7c9/internal/loader/vendor.bash (about)

     1  #!/usr/bin/env bash
     2  
     3  # Copyright 2015 The Go Authors.  All rights reserved.
     4  # Use of this source code is governed by a BSD-style
     5  # license that can be found in the LICENSE file.
     6  
     7  # Run this script to obtain an up-to-date vendored version of go/loader.
     8  
     9  set -e
    10  
    11  if [ ! -f vendor.bash ]; then
    12  	echo 'vendor.bash must be run from the loader directory' 1>&2
    13  	exit 1
    14  fi
    15  
    16  rm -f *.go
    17  for f in cgo.go loader.go util.go; do
    18  	cp $GOPATH/src/github.com/democratic-coin/dcoin-go/vendor/src/golang.org/x/tools/go/loader/$f .
    19  done
    20  
    21  patch -p1 < vendor.patch