#!/bin/sh# This script is run for each build target. It overrides the Go binaries with the Rust binaries in the ./artifacts directory.set-e# check usageif[$#-ne 2 ]||["$1"=""]||["$2"=""];thenecho"usage: $0 <rust_target> <out_dir>">&2exit 1firust_target="$1"out_dir="$2"# overwrite go binary with rust binarycp -vf"./artifacts/$rust_target"/*"$out_dir"