| # Copyright 2015 The Go Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| # Run this script to obtain an up-to-date vendored version of math/big. |
| BIGDIR=../../../../math/big |
| # We don't want any assembly files. |
| # Use pure Go arith ops w/o build tag. |
| sed 's|^// \+build math_big_pure_go$||' arith_decl_pure.go > arith_decl.go |
| # Import vendored math/big in external tests (e.g., floatexample_test.go). |
| sed 's|"math/big"|"cmd/compile/internal/big"|' $f > foo.go |
| # gofmt to clean up after sed |