github.com/rsc/go@v0.0.0-20150416155037-e040fd465409/src/cmd/internal/gc/big/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 math/big.
     8  
     9  BIGDIR=../../../../math/big
    10  
    11  # Start from scratch.
    12  rm *.go
    13  
    14  # We don't want any assembly files.
    15  cp $BIGDIR/*.go .
    16  
    17  # Use pure Go arith ops w/o build tag.
    18  sed 's/^\/\/ \+build math_big_pure_go$//' arith_decl_pure.go > arith_decl.go
    19  rm arith_decl_pure.go
    20  
    21  # gofmt to clean up after sed
    22  gofmt -w .
    23  
    24  # Test that it works
    25  go test -short