mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 14:41:14 +08:00
libgo: make a couple of sed uses POSIX compliant
Patch from Jonathan Wakely. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/401054
This commit is contained in:
parent
90a29845bf
commit
4a1a72a89c
@ -1,4 +1,4 @@
|
||||
22b0ccda3aa4d16f770a26a3eb251f8da615c318
|
||||
99ca6be406a5781be078ff23f45a72b4c84b16e3
|
||||
|
||||
The first line of this file holds the git revision number of the last
|
||||
merge done from the gofrontend repository.
|
||||
|
@ -1305,7 +1305,7 @@ check-tail: check-recursive check-multi
|
||||
if test "$$untested" -ne "0"; then \
|
||||
echo "# of untested testcases $$untested" >> libgo.sum; \
|
||||
fi; \
|
||||
echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
|
||||
echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*\)$$/\1/p'` >> libgo.sum; \
|
||||
echo >> libgo.log; \
|
||||
echo "runtest completed at `date`" >> libgo.log; \
|
||||
if test "$$fail" -ne "0"; then \
|
||||
|
@ -3189,7 +3189,7 @@ check-tail: check-recursive check-multi
|
||||
if test "$$untested" -ne "0"; then \
|
||||
echo "# of untested testcases $$untested" >> libgo.sum; \
|
||||
fi; \
|
||||
echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
|
||||
echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*\)$$/\1/p'` >> libgo.sum; \
|
||||
echo >> libgo.log; \
|
||||
echo "runtest completed at `date`" >> libgo.log; \
|
||||
if test "$$fail" -ne "0"; then \
|
||||
|
@ -100,7 +100,7 @@ fi
|
||||
|
||||
gobuild() {
|
||||
line=$(echo "$1" | sed -e 's|//go:build ||')
|
||||
line=$(echo "$line" | sed -e 's/go1\.[0-9]\+/1/g' -e 's/goexperiment\./goexperiment/')
|
||||
line=$(echo "$line" | sed -e 's/go1\.[0-9][0-9]*/1/g' -e 's/goexperiment\./goexperiment/')
|
||||
line=" $line "
|
||||
wrap='[ ()!&|]'
|
||||
for ones in $goarch $goos $cgotag $cmdlinetag gccgo goexperimentfieldtrack; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user