Skip to content

Commit

Permalink
Change placement of temp LaTeX files
Browse files Browse the repository at this point in the history
  • Loading branch information
otherjoel committed Apr 27, 2019
1 parent aa7144a commit c707879
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ pollen.cache
drafts/
posts/img/originals
*.rebuild
latex-tmp/
9 changes: 6 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,17 @@ topics.html: topics.html.pp $(core-fils) $(posts-sourcefiles) pollen-local/tags-
# http://pkg-build.racket-lang.org/doc/pollen/raco-pollen.html

publish: ## Rsync the website to the public web server (does not rebuild site first)
rm -rf posts/pollen-latex-work flatland/pollen-latex-work
rm -rf latex-tmp
raco pollen publish
rsync -av ~/Desktop/publish/ -e 'ssh -p $(WEB_SRV_PORT)' $(NOTEPAD_SRV) \
--delete \
--exclude=projects \
--exclude=.git \
--exclude=drafts \
--exclude=pollen-local \
--exclude='*.sqlite' \
--exclude='*.ltx' \
--exclude='*.swp' \
--exclude='*.rebuild' \
--exclude=.DS_Store \
--exclude=.gitignore \
Expand All @@ -124,10 +127,10 @@ publish: ## Rsync the website to the public web server (does not rebuild site fi
--exclude='posts/img/originals'
rm -rf ~/Desktop/publish

# ‘make spritz’ just cleans up the pollen-latex-work files and clears the Pollen cache;
# ‘make spritz’ just cleans up temporary LaTeX files and clears the Pollen cache;
# ‘make zap’ deletes all output files as well.
spritz: ## Just cleans up LaTeX working folders and Pollen cache
rm -rf posts/pollen-latex-work pollen-latex-work
rm -rf latex-tmp
raco pollen reset

zap: spritz ## Does a spritz and also deletes all HTML and PDF output
Expand Down
2 changes: 1 addition & 1 deletion template.pdf.p
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
})
◊(define working-directory
(build-path (current-directory) "pollen-latex-work"))
(build-path (current-project-root) "latex-tmp"))
◊(unless (directory-exists? working-directory)
(make-directory working-directory))
◊(define ltx-source (string-replace
Expand Down

0 comments on commit c707879

Please sign in to comment.