aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2017-08-01 19:25:45 +0200
committerVirtualTam <virtualtam@flibidi.net>2017-08-02 14:48:41 +0200
commit29712e905b8a9bdf1eaa21cbda3ca7c9eb215937 (patch)
tree0da3171bdd143c3aa6810ed44e615990aeda995f
parent1093ddeea28fb593c670f8c1da2cdcdd767c9a80 (diff)
downloadShaarli-29712e905b8a9bdf1eaa21cbda3ca7c9eb215937.tar.gz
Shaarli-29712e905b8a9bdf1eaa21cbda3ca7c9eb215937.tar.zst
Shaarli-29712e905b8a9bdf1eaa21cbda3ca7c9eb215937.zip
documentation: include generated HTML in release archives
Closes https://github.com/shaarli/Shaarli/issues/908 Relates to https://github.com/shaarli/Shaarli/pull/772 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f2db7d96..6483fca7 100644
--- a/Makefile
+++ b/Makefile
@@ -159,15 +159,18 @@ composer_dependencies: clean
159 find vendor/ -name ".git" -type d -exec rm -rf {} + 159 find vendor/ -name ".git" -type d -exec rm -rf {} +
160 160
161### generate a release tarball and include 3rd-party dependencies 161### generate a release tarball and include 3rd-party dependencies
162release_tar: composer_dependencies 162release_tar: composer_dependencies doc_html
163 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).tar HEAD 163 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).tar HEAD
164 tar rvf $(ARCHIVE_VERSION).tar --transform "s|^vendor|$(ARCHIVE_PREFIX)vendor|" vendor/ 164 tar rvf $(ARCHIVE_VERSION).tar --transform "s|^vendor|$(ARCHIVE_PREFIX)vendor|" vendor/
165 tar rvf $(ARCHIVE_VERSION).tar --transform "s|^doc/html|$(ARCHIVE_PREFIX)doc/html|" doc/html/
165 gzip $(ARCHIVE_VERSION).tar 166 gzip $(ARCHIVE_VERSION).tar
166 167
167### generate a release zip and include 3rd-party dependencies 168### generate a release zip and include 3rd-party dependencies
168release_zip: composer_dependencies 169release_zip: composer_dependencies doc_html
169 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD 170 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD
170 mkdir $(ARCHIVE_PREFIX) 171 mkdir -p $(ARCHIVE_PREFIX)/{doc,vendor}
172 rsync -a doc/html/ $(ARCHIVE_PREFIX)doc/html/
173 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)doc/
171 rsync -a vendor/ $(ARCHIVE_PREFIX)vendor/ 174 rsync -a vendor/ $(ARCHIVE_PREFIX)vendor/
172 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)vendor/ 175 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)vendor/
173 rm -rf $(ARCHIVE_PREFIX) 176 rm -rf $(ARCHIVE_PREFIX)
@@ -206,4 +209,3 @@ htmlpages:
206 rm -r venv 209 rm -r venv
207 210
208doc_html: authors htmlpages 211doc_html: authors htmlpages
209