From 0688a97556ec50dc15b708e6e7c8ff0b9c3fc35c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 6 Apr 2010 10:23:21 -0700 Subject: [PATCH] GNU/Linux sed requires \? rather than ?. Just use * instead. R=rsc, r CC=golang-dev https://golang.org/cl/810043 --- 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 2058e758f4..73888dff00 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/^[ \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. -- 2.50.0