Skip to content

Commit

Permalink
简化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jul 24, 2017
1 parent d7e8caf commit 3a8f152
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ install:
- sudo $TLMGR update --self --all -repository http://ctan.sharelatex.com/tex-archive/systems/texlive/tlnet/

script:
- make html
- make latexpdf
- make pre-deploy
# build html and PDF
- make build

deploy:
provider: pages
Expand Down
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ figures:
@echo "Update all figures..."
make -C source/scripts

pre-deploy: html latexpdf
build: html latexpdf
@echo "Deploy HTML, ZIP and PDF"
cd $(BUILDDIR) && cp -r html $(DOCNAME) && zip -r html/$(DOCNAME).zip $(DOCNAME) && \
cd $(BUILDDIR) && cp -r html $(DOCNAME) && zip -rm html/$(DOCNAME).zip $(DOCNAME) && \
cp latex/$(DOCNAME).pdf html && cd ..

release: html latexpdf
cd $(BUILDDIR) && mv html $(DOCNAME) && zip -r ../$(DOCNAME).zip $(DOCNAME)/
mv $(BUILDDIR)/latex/$(DOCNAME).pdf .
rm -rf $(BUILDDIR)/*

0 comments on commit 3a8f152

Please sign in to comment.