From d08728f1e13c70af122f95ef54c6b06702599494 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 5 Apr 2010 22:08:07 -0700 Subject: [PATCH] deps.bash: be less strict about format of x.go lines R=iant CC=golang-dev https://golang.org/cl/862042 --- src/pkg/deps.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/deps.bash b/src/pkg/deps.bash index fa06f646fc3..2058e758f4e 100755 --- a/src/pkg/deps.bash +++ b/src/pkg/deps.bash @@ -18,7 +18,7 @@ dirpat=$(echo $dirs | sed 's/ /|/g; s/.*/^(&)$/') for dir in $dirs; do ( cd $dir || exit 1 - sources=$(sed -n 's/\.go[ \t]*\\/.go/p' Makefile) + sources=$(sed -n 's/^[ \t]*\([^ \t]*\.go\)[ \t]*\\?[ \t]*$/\1/p' Makefile) sources=$(echo $sources | sed 's/\$(GOOS)/'$GOOS'/g') sources=$(echo $sources | sed 's/\$(GOARCH)/'$GOARCH'/g') sources=$(ls $sources 2> /dev/null) # remove .s, .c, etc.