X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=fiction%2Fjasmina.git;a=blobdiff_plain;f=Makefile;h=e5f2b735eb95ed395b8b2cd89166693a085092c9;hp=46361f6d5448bd364d639b4d019040fc5db2b733;hb=d810a1d770337b38f3feb2b622dc6864809a4d2a;hpb=3bd14a6a30b068bcf216dc789999d081536bc24b diff --git a/Makefile b/Makefile index 46361f6..e5f2b73 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ SRC_URL=http://www.wagner.pp.ru/~vitus/fiction +UPLOAD_URL=https://www.wagner.pp.ru/dav/vitus/fiction ID=90860948-65dc-11e5-bd77-bc5ff453db06 VERSION=0.$(shell date +%s) @@ -7,6 +8,9 @@ all: jasmina.html jasmina.epub jasmina.fb2.zip fb2: jasmina.fb2.zip pdf: jasmina.pdf +publish: jasmina.html jasmina.epub jasmina.fb2.zip jasmina.pdf + for i in $^; do curl -n -T $$i $(UPLOAD_URL)/$$i || exit 1;done + all.mdwn: order.lst $(wildcard *.txt) for i in `cat order.lst`; do sed 's//*(Фрагмент недописан)*/' "$$i"; echo ""; done > $@ jasmina.html: all.mdwn @@ -31,13 +35,16 @@ jasmina.fb2: all.mdwn annotation.html jasmina-title.jpg Makefile sed -i 's!!ВикторВагнер!' $@ sed -i 's!!${SRC_URL}${ID}${VERSION}!' $@ sed -i "s!!`base64 -w 0 jasmina-title.jpg`!" $@ -jasmina.pdf: jasmina.tex all.tex - pdflatex jasmina.tex - pdflatex jasmina.tex +jasmina.pdf: jasmina.tex all.tex jasmina-title.jpg + xelatex jasmina.tex + xelatex jasmina.tex all.tex: all.mdwn pandoc -o all.tex all.mdwn - sed -i 's! ---!~---!g' all.tex + sed -i -e 's! ---!~---!g' -e 's!\([а-я]\)-\([А-Яа-я]\)!\1"=\2!g' all.tex + sed -i -e 's!\\section{!\\part{!' -e 's!\\subsection{!\\chapter{!' all.tex notes: all.mdwn # List all the footnotes grep '^\[\^' all.mdwn|sort -n -k 1.3 + +