mirror of
https://github.com/golang/go
synced 2024-11-18 15:44:41 -07:00
GNU/Linux sed requires \? rather than ?. Just use * instead.
R=rsc, r CC=golang-dev https://golang.org/cl/810043
This commit is contained in:
parent
1d37c11657
commit
0688a97556
@ -18,7 +18,7 @@ dirpat=$(echo $dirs | sed 's/ /|/g; s/.*/^(&)$/')
|
||||
for dir in $dirs; do (
|
||||
cd $dir || exit 1
|
||||
|
||||
sources=$(sed -n 's/^[ \t]*\([^ \t]*\.go\)[ \t]*\\?[ \t]*$/\1/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.
|
||||
|
Loading…
Reference in New Issue
Block a user