Remove SVN publish support from release notes makefile
Release notes are published on Google cloud storage, and the SVN publishing support is no longer needed. Change-Id: I4e07fba67b6d5e46b1b4f2b757604812c45f4e86
This commit is contained in:
@@ -14,39 +14,16 @@
|
|||||||
|
|
||||||
ASCIIDOC ?= asciidoc
|
ASCIIDOC ?= asciidoc
|
||||||
ASCIIDOC_EXTRA ?=
|
ASCIIDOC_EXTRA ?=
|
||||||
SVN ?= svn
|
|
||||||
PUB_ROOT ?= https://gerrit-documentation.googlecode.com/svn/ReleaseNotes
|
|
||||||
|
|
||||||
DOC_HTML := $(patsubst %.txt,%.html,$(wildcard ReleaseNotes*.txt))
|
DOC_HTML := $(patsubst %.txt,%.html,$(wildcard ReleaseNotes*.txt))
|
||||||
COMMIT := $(shell git describe HEAD | sed s/^v//)
|
COMMIT := $(shell git describe HEAD | sed s/^v//)
|
||||||
LOCAL_ROOT := .published
|
|
||||||
PUB_DIR := $(PUB_ROOT)
|
|
||||||
|
|
||||||
all: html
|
all: html
|
||||||
|
|
||||||
html: index.html $(DOC_HTML)
|
html: index.html $(DOC_HTML)
|
||||||
|
|
||||||
update: html
|
|
||||||
@-rm -rf $(LOCAL_ROOT)
|
|
||||||
@echo "Checking out current release notes"
|
|
||||||
@$(SVN) checkout $(PUB_DIR) $(LOCAL_ROOT)
|
|
||||||
@rm -f $(LOCAL_ROOT)/*.html
|
|
||||||
@cp *.html $(LOCAL_ROOT)
|
|
||||||
@cd $(LOCAL_ROOT) && \
|
|
||||||
r=`$(SVN) status | perl -ne 'print if s/^! *//' ` && \
|
|
||||||
if [ -n "$$r" ]; then $(SVN) rm $$r; fi && \
|
|
||||||
a=`$(SVN) status | perl -ne 'print if s/^\? *//' ` && \
|
|
||||||
if [ -n "$$a" ]; then \
|
|
||||||
$(SVN) add $$a && \
|
|
||||||
$(SVN) propset svn:mime-type text/html $$a ; \
|
|
||||||
fi && \
|
|
||||||
echo "Committing release notes at v$(COMMIT)" && \
|
|
||||||
$(SVN) commit -m "Updated release notes to v$(COMMIT)"
|
|
||||||
@-rm -rf $(LOCAL_ROOT)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.html
|
rm -f *.html
|
||||||
rm -rf $(LOCAL_ROOT)
|
|
||||||
|
|
||||||
index.html: index.txt
|
index.html: index.txt
|
||||||
@echo FORMAT $@
|
@echo FORMAT $@
|
||||||
|
|||||||
Reference in New Issue
Block a user