Side by Side Diff: src/pkg/deps.bash
Issue 152138 :
code review 152138: Build changes to support work on the BSDs. (Closed)
Patch Set: code review 152138: Build changes to support work on the BSDs.
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/Make.pkg
src/all.bash
src/all-arm.bash
src/all-nacl.bash
src/clean.bash
src/cmd/clean.bash
src/cmd/gofmt/test.sh
src/cmd/gotest/gotest
src/cmd/make.bash
src/make.bash
src/make-arm.bash
src/pkg/Makefile
src/pkg/deps.bash
src/pkg/exp/eval/test.bash
src/pkg/syscall/mkall.sh
src/pkg/syscall/mkerrors.sh
src/quietgcc.bash
src/run.bash
src/sudo.bash
test/run
OLD NEW
1 #!/bin/bash 1 #!/ usr/ bin/ env bash
2 # Copyright 2009 The Go Authors. All rights reserved. 2 # Copyright 2009 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style 3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file. 4 # license that can be found in the LICENSE file.
5 5
6 OUT="Make.deps" 6 OUT="Make.deps"
7 TMP="Make.deps.tmp" 7 TMP="Make.deps.tmp"
8 8
9 if [ -f $OUT ] && ! [ -w $OUT ]; then 9 if [ -f $OUT ] && ! [ -w $OUT ]; then
10 echo "$0: $OUT is read-only; aborting." 1>&2 10 echo "$0: $OUT is read-only; aborting." 1>&2
11 exit 1 11 exit 1
(...skipping 15 matching lines...) Expand all Loading...
27 egrep "$dirpat" | 27 egrep "$dirpat" |
28 grep -v "^$dir\$" | 28 grep -v "^$dir\$" |
29 sed 's/$/.install/' | 29 sed 's/$/.install/' |
30 sort -u 30 sort -u
31 ) 31 )
32 32
33 echo $dir.install: $deps 33 echo $dir.install: $deps
34 ) done > $TMP 34 ) done > $TMP
35 35
36 mv $TMP $OUT 36 mv $TMP $OUT
OLD NEW