1
0
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:
Ian Lance Taylor 2010-04-06 10:23:21 -07:00 committed by Russ Cox
parent 1d37c11657
commit 0688a97556

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/^[ \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.