Commit d08728f1 authored by Russ Cox's avatar Russ Cox

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

R=iant
CC=golang-dev
https://golang.org/cl/862042
parent cc99ba0a
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment