Makefile.am (check-go-tool): Only chmod check-go-dir if it exists.
authorIan Lance Taylor <iant@golang.org>
Mon, 27 May 2019 19:21:22 +0000 (19:21 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 27 May 2019 19:21:22 +0000 (19:21 +0000)
* Makefile.am (check-go-tool): Only chmod check-go-dir if it
exists.
* Makefile.in: Regenerate.

From-SVN: r271669

gotools/ChangeLog
gotools/Makefile.am
gotools/Makefile.in

index 20af2b5153728981fda4ee26dc966ac6568a4a69..f5639057d7b0ee42cc4e5ac4728f161e3d7f9a31 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-27  Ian Lance Taylor  <iant@golang.org>
+
+       * Makefile.am (check-go-tool): Only chmod check-go-dir if it
+       exists.
+       * Makefile.in: Regenerate.
+
 2019-02-28  Ian Lance Taylor  <iant@golang.org>
 
        PR go/89406
index 41fc8f45f812e027331de04ca60b2f47f4dfa199..4fd07c27b19713c938d83d890ac6f68b405e2901 100644 (file)
@@ -207,7 +207,7 @@ ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,
 
 # check-go-tool runs `go test cmd/go` in our environment.
 check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
-       -chmod -R u+w check-go-dir
+       if test -d check-go-dir; then chmod -R u+w check-go-dir; fi
        rm -rf check-go-dir cmd_go-testlog
        $(MKDIR_P) check-go-dir/src/cmd/go
        cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/
index 0e4ee83def4eff0b131f64fb18ce7ad302acf920..1c2237cca9b19bea54ce72daf5fc4fb012906c86 100644 (file)
@@ -878,7 +878,7 @@ mostlyclean-local:
 
 # check-go-tool runs `go test cmd/go` in our environment.
 @NATIVE_TRUE@check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
-@NATIVE_TRUE@  -chmod -R u+w check-go-dir
+@NATIVE_TRUE@  if test -d check-go-dir; then chmod -R u+w check-go-dir; fi
 @NATIVE_TRUE@  rm -rf check-go-dir cmd_go-testlog
 @NATIVE_TRUE@  $(MKDIR_P) check-go-dir/src/cmd/go
 @NATIVE_TRUE@  cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/