get-markdownfmt.sh 582 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -Eeuo pipefail
  3. set -x
  4. [ -n "$GOPATH" ]
  5. export GOPATH_FIRST="${GOPATH%%:*}"
  6. git clone \
  7. --depth 1 \
  8. https://github.com/tianon/markdownfmt.git \
  9. "$GOPATH_FIRST/src/github.com/shurcooL/markdownfmt"
  10. export BLACKFRIDAY_VERSION="$(awk '$1 == "ENV" && $2 == "BLACKFRIDAY_VERSION" { print $3; exit }' "$GOPATH_FIRST/src/github.com/shurcooL/markdownfmt/Dockerfile")"
  11. git clone \
  12. --depth 1 \
  13. -b "$BLACKFRIDAY_VERSION" \
  14. https://github.com/russross/blackfriday.git \
  15. "$GOPATH_FIRST/src/github.com/russross/blackfriday"
  16. go get -v github.com/shurcooL/markdownfmt