You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
432 B

  1. #!/bin/sh
  2. go get golang.org/x/tools/cmd/present
  3. go get golang.org/x/tools/godoc
  4. present=`go list -f '{{.Dir}}' golang.org/x/tools/cmd/present`
  5. godoc=`go list -f '{{.Dir}}' golang.org/x/tools/godoc`
  6. mkdir -p present
  7. (cat $godoc/static/jquery.js $godoc/static/playground.js $godoc/static/play.js && echo "initPlayground(new HTTPTransport());") > present/play.js
  8. cd ./present
  9. for i in templates static
  10. do
  11. ln -is $present/$i
  12. done