X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=fiction%2Fjasmina.git;a=blobdiff_plain;f=Makefile;h=e5f2b735eb95ed395b8b2cd89166693a085092c9;hp=e9bfc4ba76ee3bee688771e4bcf71e1bbf6f177b;hb=d810a1d770337b38f3feb2b622dc6864809a4d2a;hpb=0800206029de203ba9c0a09bacc9a0044a6fcffb diff --git a/Makefile b/Makefile index e9bfc4b..e5f2b73 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,16 @@ 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) -all: jasmina.html jasmina.epub +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,8 +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: preamble.tex all.tex - pdflatex preamble.tex - pdflatex preamble.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 -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 + +