blob: 123320257a7332a764ce295a229b4b2c4be7e393 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
pkg=arabluatex
sty: clean
lualatex $(pkg).ins
doc: clean sty
lualatex $(pkg).dtx
biber arabluatex
lualatex $(pkg).dtx
makeindex -s gind.ist -o $(pkg).ind $(pkg).idx
makeindex -s gglo.ist -o $(pkg).gls $(pkg).glo
lualatex $(pkg).dtx
lualatex $(pkg).dtx
echo "now building the sample documents..."
latexmk -lualatex -e '$$lualatex=q/lualatex %O --shell-escape %S/' -outdir=TMP samples/al-Jahiz
mv TMP/*.pdf samples/
all: clean sty doc
local: clean sty
if [ ! -d "~/texmf/tex/lualatex/arabluatex" ]; then \
mkdir -p ~/texmf/tex/lualatex/arabluatex; \
fi
cp $(pkg)*.{sty,lua} ~/texmf/tex/lualatex/arabluatex
if [ ! -d "~/.emacs.d/auctex/auto" ]; then \
mkdir -p ~/.emacs.d/auctex/auto; \
fi
cp $(pkg)*.el ~/.emacs.d/auctex/auto
auctex: clean
if [ ! -d "~/.emacs.d/auctex/auto" ]; then \
mkdir -p ~/.emacs.d/auctex/auto; \
fi
cp $(pkg)*.el ~/.emacs.d/auctex/auto
package: clean all
mkdir arabluatex
cp *.lua *.ins *.dtx *.md *.pdf arabluatex/ # .bib is in dtx
mkdir -p tex/lualatex/arabluatex/
cp *.lua *.sty tex/lualatex/arabluatex/
mkdir -p doc/lualatex/arabluatex/samples
cp *.{pdf,el} doc/lualatex/arabluatex/
cp samples/*.{tex,pdf} doc/lualatex/arabluatex/samples
mkdir -p source/lualatex/arabluatex/
cp *.ins *.dtx *.tex source/lualatex/arabluatex/ # .bib is in dtx
zip -r arabluatex.tds.zip tex doc source
tar czf arabluatex.tar.gz arabluatex.tds.zip arabluatex/
clean:
rm -rf ~/texmf/tex/lualatex/arabluatex/
rm -rf ~/.emacs.d/auctex/auto/arabluatex*.el
rm -rf tex/ doc/ source/ auto/ _minted*/
rm -rf arabluatex/
rm -rf saved/ TMP/
find ./samples/ -type f | grep -v ".*tex$$" | xargs /usr/bin/rm -f
mkdir saved
cp *.{lua,ins,dtx,tex,el} makefile saved # .bib is in dtx
rm *.*
cp saved/* .
rm -rf saved/
pandoc -s README.tex -o README.md && sed -i 's/{#.*}//g' README.md
pandoc -s README.tex -o about.html
|