Skip to content

Commit

Permalink
Modified the name of the documentation artifact to vary in release an…
Browse files Browse the repository at this point in the history
…d snapshot build
  • Loading branch information
AlvinMooreSr committed Mar 19, 2018
1 parent 483182e commit b52cae3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ docpreview: javadoc godoc
docpreview_clean:
CLEAN_TARGETS= $(MAKE) -C documentation docpreview_clean

packages/foundationdb-docs-$(VERSION)-SNAPSHOT.tar.gz: FORCE javadoc godoc
packages/foundationdb-docs-$(VERSION)-$(PKGRELEASE).tar.gz: FORCE javadoc godoc
TARGETS= $(MAKE) -C documentation docpackage
@mkdir -p packages
@rm -f packages/foundationdb-docs-SNAPSHOT.tar.gz
@cp documentation/sphinx/.dist/foundationdb-docs-$(VERSION)-SNAPSHOT.tar.gz packages/foundationdb-docs-$(VERSION)-SNAPSHOT.tar.gz
@rm -f packages/foundationdb-docs-$(VERSION)-$(PKGRELEASE).tar.gz
@cp documentation/sphinx/.dist/foundationdb-docs-$(VERSION)-$(PKGRELEASE).tar.gz packages/foundationdb-docs-$(VERSION)-$(PKGRELEASE).tar.gz

docpackage: packages/foundationdb-docs-$(VERSION)-SNAPSHOT.tar.gz
docpackage: packages/foundationdb-docs-$(VERSION)-$(PKGRELEASE).tar.gz

FORCE:

Expand Down
10 changes: 2 additions & 8 deletions documentation/sphinx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@
PROJECT_NAME := foundationdb-docs
#VERSION := $(shell cat version)

ifeq ($(RELEASE_BUILD),true)
RELEASE := $(VERSION)
else
RELEASE := $(VERSION)-SNAPSHOT
endif

GIT_HEAD_REF := $(shell git rev-parse --short HEAD)
GIT_BRANCH := $(shell git symbolic-ref --short HEAD)
GIT_REPO_URL := $(shell git config --get remote.origin.url)

# You can set these variables from the command line.
#VERSIONOPTS := -D version=$(VERSION) -D release=$(RELEASE)
SPHINXOPTS := -c .
PAPER =
ROOTDIR := $(CURDIR)
Expand Down Expand Up @@ -110,4 +103,5 @@ livehtml: html
# removed html prerequisite because it is previously explictly invoked
package:
mkdir -p $(DISTDIR)
cd $(BUILDDIR)/html && tar czf $(DISTDIR)/$(PROJECT_NAME)-$(RELEASE).tar.gz .
rm -f $(DISTDIR)/$(PROJECT_NAME)-$(VERSION)-$(PKGRELEASE).tar.gz
cd $(BUILDDIR)/html && tar czf $(DISTDIR)/$(PROJECT_NAME)-$(VERSION)-$(PKGRELEASE).tar.gz .

0 comments on commit b52cae3

Please sign in to comment.