#!/bin/bash -eu # Copyright 2020 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. set -o pipefail output=$1 tempfile=$(mktemp) cd $(dirname $0) cat > $tempfile <> $tempfile echo >> $tempfile sed 's/^-- / &/' $dir/$license >> $tempfile echo >> $tempfile done echo "\`" >> $tempfile mv $tempfile $output