bootstrap 670 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. #
  3. # This script helps new contributors set up their local workstation for
  4. # gophercloud development and contributions.
  5. # Create the environment
  6. export GOPATH=$HOME/go/gophercloud
  7. mkdir -p $GOPATH
  8. # Download gophercloud into that environment
  9. go get devel.mephi.ru/iacherepanov/openstack-gophercloud
  10. cd $GOPATH/src/devel.mephi.ru/iacherepanov/openstack-gophercloud
  11. git checkout master
  12. # Write out the env.sh convenience file.
  13. cd $GOPATH
  14. cat <<EOF >env.sh
  15. #!/bin/bash
  16. export GOPATH=$(pwd)
  17. export GOPHERCLOUD=$GOPATH/src/devel.mephi.ru/iacherepanov/openstack-gophercloud
  18. EOF
  19. chmod a+x env.sh
  20. # Make changes immediately available as a convenience.
  21. . ./env.sh