Skip to content

Commit

Permalink
renamed dist-pub to release-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyen committed Apr 15, 2015
1 parent 9b411ef commit c9ce031
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ coverage:
go tool cover -html=coverage.out

# -------------------------------------------------------------------
# Release distribution related targets...
# Release / distribution related targets...

CBFT_CHECKOUT = origin/master
CBFT_DOCKER = cbft-builder:latest

dist: test dist-meta dist-build

Expand Down Expand Up @@ -78,12 +81,19 @@ dist-clean: clean
rm -rf ./static/dist/*
git checkout bindata_assetfs.go

# -------------------------------------------------------------------

CBFT_CHECKOUT = origin/master
CBFT_DOCKER = cbft-builder:latest
release-helper: # This runs inside a cbft-builder docker container.
git remote update
git fetch --tags
git checkout $(CBFT_CHECKOUT)
$(MAKE) dist
$(MAKE) gen-docs
mkdocs build --clean
mkdir -p /tmp/dist-out
mkdir -p /tmp/dist-site
cp -R ./dist/out/* /tmp/dist-out
cp -R ./site/* /tmp/dist-site

dist-pub:
release-publish:
rm -rf $(pwd)/tmp/dist-out
rm -rf $(pwd)/tmp/dist-site
mkdir -p $(pwd)/tmp/dist-out
Expand All @@ -94,22 +104,11 @@ dist-pub:
$(CBFT_DOCKER) \
make -C /go/src/github.com/couchbaselabs/cbft \
CBFT_CHECKOUT=$(CBFT_CHECKOUT) \
dist-pub-helper dist-clean
release-helper dist-clean
rm -rf ./site/*
cp -R $(pwd)/tmp/dist-site/* ./site
mkdocs gh-deploy

dist-pub-helper: # This runs inside a cbft-builder docker container.
git remote update
git checkout $(CBFT_CHECKOUT)
$(MAKE) dist
$(MAKE) gen-docs
mkdocs build --clean
mkdir -p /tmp/dist-out
mkdir -p /tmp/dist-site
cp -R ./dist/out/* /tmp/dist-out
cp -R ./site/* /tmp/dist-site

# -------------------------------------------------------------------
# The prereqs are for one time setup of required build/dist tools...

Expand Down

0 comments on commit c9ce031

Please sign in to comment.