1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:10:04 -07:00

deps.bash: be less strict about format of x.go lines

R=iant
CC=golang-dev
https://golang.org/cl/862042
This commit is contained in:
Russ Cox 2010-04-05 22:08:07 -07:00
parent cc99ba0a96
commit d08728f1e1

View File

@ -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.