diff options
author | VirtualTam <virtualtam@flibidi.net> | 2017-08-01 19:25:45 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2017-08-02 14:48:41 +0200 |
commit | 29712e905b8a9bdf1eaa21cbda3ca7c9eb215937 (patch) | |
tree | 0da3171bdd143c3aa6810ed44e615990aeda995f /Makefile | |
parent | 1093ddeea28fb593c670f8c1da2cdcdd767c9a80 (diff) | |
download | Shaarli-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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |
162 | release_tar: composer_dependencies | 162 | release_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 |
168 | release_zip: composer_dependencies | 169 | release_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 | ||
208 | doc_html: authors htmlpages | 211 | doc_html: authors htmlpages |
209 | |||