From: Mart Lubbers Date: Wed, 9 May 2018 10:42:58 +0000 (+0200) Subject: Diverse improvement X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=05d5d6fe753670c04d3891fac0fb6920f5c31afa;p=dotfiles.git Diverse improvement - Improve force sync when there is no offlineimap running - Migrate newsbeuter to newsboat - Fix XCompose for swastikas - Add makefile for general latex projects --- diff --git a/email/.mutt/force_sync.sh b/email/.mutt/force_sync.sh index 2459e1e..e52ca27 100755 --- a/email/.mutt/force_sync.sh +++ b/email/.mutt/force_sync.sh @@ -1,2 +1,2 @@ #!/bin/sh -pidof -x offlineimap | xargs kill -10 +pidof -x offlineimap | xargs -r kill -10 diff --git a/newsbeuter/.config/newsbeuter/config b/newsbeuter/.config/newsbeuter/config deleted file mode 100644 index fa5bda0..0000000 --- a/newsbeuter/.config/newsbeuter/config +++ /dev/null @@ -1 +0,0 @@ -auto-reload yes diff --git a/newsboat/.config/newsboat/config b/newsboat/.config/newsboat/config new file mode 100644 index 0000000..e69de29 diff --git a/newsbeuter/.config/newsbeuter/urls b/newsboat/.config/newsboat/urls similarity index 100% rename from newsbeuter/.config/newsbeuter/urls rename to newsboat/.config/newsboat/urls diff --git a/x/.XCompose b/x/.XCompose index 0438a39..63b28e2 100644 --- a/x/.XCompose +++ b/x/.XCompose @@ -227,5 +227,5 @@ include "%L" : "Ⅿ" U216F # Swastika's - : "卍" U534D - : "卐" U5350 + : "卍" U534D + : "卐" U5350 diff --git a/x/.local/bin/latex.mk b/x/.local/bin/latex.mk new file mode 100644 index 0000000..63fed6e --- /dev/null +++ b/x/.local/bin/latex.mk @@ -0,0 +1,24 @@ +.PHONY: clean clobber + +DOCUMENT:=$(shell grep -Fl documentclass *.tex) +LATEX?=pdflatex +LATEXFLAGS?=--no-shell-escape -file-line-error -halt-on-error +BIBTEX?=bibtex +MAKEGLOSSARIES?=makeglossaries +MAKEINDEX?=makeindex + +all: $(subst tex,pdf,$(shell grep -Fl documentclass *.tex)) + +%.pdf: %.tex $(wildcard *.tex) + $(LATEX) $(LATEXFLAGS) $* + grep -q '^\\bibdata{' $*.aux && $(BIBTEX) $(BIBTEXFLAGS) $* || true + grep -q '\@istfilename' $*.aux && $(MAKEGLOSSARIES) $(MAKEGLOSSARIESFLAGS) $* || true + [ -f $*.idx ] && $(MAKEINDEX) $(MAKEINDEXFLAGS) $* || true + $(LATEX) $(LATEXFLAGS) $* + $(LATEX) $(LATEXFLAGS) $* + +clean: + $(RM) $(addprefix *.,acn acr alg aux bbl blg fmt glg glo gls idx ilg ind ist loa lof log lol lot nav out snm tdo toc vrb) + +clobber: clean + $(RM) -i *.pdf