Browse files

Make scripts work on OSX

  • Loading branch information...
1 parent f106dde commit ac3cac6c0adcbfb7dc96fe39e712e722ff83ea54 David Sabeti and Pieter Noordhuis committed Feb 12, 2013
Showing with 10 additions and 7 deletions.
  1. +7 −0 bin/env
  2. +1 −5 bin/go
  3. +1 −1 test.sh
  4. +1 −1 update.sh
View
7 bin/env
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+pushd $(dirname $0)/.. > /dev/null
+base=$PWD
+popd > /dev/null
+
+exec env GOPATH=$base:$base/vendor $@
View
6 bin/go
@@ -1,7 +1,3 @@
#!/bin/bash
-base=$(readlink -nf $(dirname $0)/..)
-
-export GOPATH=$base
-
-go $@
+exec $(dirname $0)/env go $@
View
2 test.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-go=$(readlink -nf bin/go)
+go=$PWD/bin/go
for i in $(find src -name '*_test.go' | xargs -n1 dirname | uniq)
do
View
2 update.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-go=$(readlink -nf bin/go)
+go=$PWD/bin/go
function revision() {
pushd src > /dev/null

0 comments on commit ac3cac6

Please sign in to comment.