Browse Source

build: run build commands from the fake workspace root

This ensures that compiler error messages contain the correct path.
Felix Lange 10 years ago
parent
commit
12df8565cf
1 changed files with 5 additions and 1 deletions
  1. 5 1
      build/env.sh

+ 5 - 1
build/env.sh

@@ -24,5 +24,9 @@ GOPATH="$ethdir/go-ethereum/Godeps/_workspace:$workspace"
 GOBIN="$PWD/build/bin"
 export GOPATH GOBIN
 
+# Run the command inside the workspace.
+cd "$ethdir/go-ethereum"
+PWD="$ethdir/go-ethereum"
+
 # Launch the arguments with the configured environment.
-exec $@
+exec "$@"