jollheef / free-as-in-freedom-v2-ru

Русский перевод второго издания Free as in Freedom: Richard Stallman's Crusade for Free Software.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ошибка при генерации epub

Zavyalov opened this issue · comments

Генерация epub на Ubuntu 16.04.6 LTS требует ключа -o:
pandoc -t epub -o faif-2.0.epub faif-2.0.tex

А сейчас так:

cp faif-2.0.pdf faif-2.0-v0.99.7.pdf
pandoc -t fb2 faif-2.0.tex > faif-2.0.fb2
cp faif-2.0.fb2 faif-2.0-v0.99.7.fb2
pandoc -t epub faif-2.0.tex > faif-2.0.epub
pandoc: Cannot write epub output to stdout.
Specify an output file using the -o option.
Makefile:12: recipe for target 'epub' failed
make: *** [epub] Error 5
diff --git a/Makefile b/Makefile
index bfdb67f..48f2d9e 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ fb2: metadata
        cp faif-2.0.fb2 faif-2.0-$(shell git describe --abbrev=0 --tags).fb2
 
 epub: metadata
-       pandoc -t epub faif-2.0.tex > faif-2.0.epub
+       pandoc -t epub -o faif-2.0.epub faif-2.0.tex
        cp faif-2.0.epub faif-2.0-$(shell git describe --abbrev=0 --tags).epub
 
 metadata: translators version time