Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(136)

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. Created 15 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/Makefile ('k') | src/pkg/exp/eval/test.bash » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/pkg/Makefile ('k') | src/pkg/exp/eval/test.bash » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b