Diverse improvement
authorMart Lubbers <mart@martlubbers.net>
Wed, 9 May 2018 10:42:58 +0000 (12:42 +0200)
committerMart Lubbers <mart@martlubbers.net>
Wed, 9 May 2018 10:42:58 +0000 (12:42 +0200)
- Improve force sync when there is no offlineimap running
- Migrate newsbeuter to newsboat
- Fix XCompose for swastikas
- Add makefile for general latex projects

email/.mutt/force_sync.sh
newsbeuter/.config/newsbeuter/config [deleted file]
newsboat/.config/newsboat/config [new file with mode: 0644]
newsboat/.config/newsboat/urls [moved from newsbeuter/.config/newsbeuter/urls with 100% similarity]
x/.XCompose
x/.local/bin/latex.mk [new file with mode: 0644]

index 2459e1e..e52ca27 100755 (executable)
@@ -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 (file)
index fa5bda0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-auto-reload yes
diff --git a/newsboat/.config/newsboat/config b/newsboat/.config/newsboat/config
new file mode 100644 (file)
index 0000000..e69de29
index 0438a39..63b28e2 100644 (file)
@@ -227,5 +227,5 @@ include "%L"
 <Multi_key> <percent> <M>                   : "Ⅿ" U216F
 
 # Swastika's
-<multi_key> <h> <a> <k> <e> <n>             : "卍" U534D
-<multi_key> <h> <a> <k> <e> <i>             : "卐" U5350
+<Multi_key> <h> <a> <k> <e> <n>             : "卍" U534D
+<Multi_key> <h> <a> <k> <e> <i>             : "卐" U5350
diff --git a/x/.local/bin/latex.mk b/x/.local/bin/latex.mk
new file mode 100644 (file)
index 0000000..63fed6e
--- /dev/null
@@ -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