Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Make scripts work on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
David Sabeti and Pieter Noordhuis committed Feb 12, 2013
1 parent f106dde commit ac3cac6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
7 changes: 7 additions & 0 deletions bin/env
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

pushd $(dirname $0)/.. > /dev/null
base=$PWD
popd > /dev/null

exec env GOPATH=$base:$base/vendor $@
6 changes: 1 addition & 5 deletions bin/go
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/bin/bash #!/bin/bash


base=$(readlink -nf $(dirname $0)/..) exec $(dirname $0)/env go $@

export GOPATH=$base

go $@
2 changes: 1 addition & 1 deletion test.sh
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash


go=$(readlink -nf bin/go) go=$PWD/bin/go


for i in $(find src -name '*_test.go' | xargs -n1 dirname | uniq) for i in $(find src -name '*_test.go' | xargs -n1 dirname | uniq)
do do
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash


go=$(readlink -nf bin/go) go=$PWD/bin/go


function revision() { function revision() {
pushd src > /dev/null pushd src > /dev/null
Expand Down

0 comments on commit ac3cac6

Please sign in to comment.