diff options
-rwxr-xr-x | Makefile | 90 | ||||
-rw-r--r-- | docs/appendix-a.md | 2 | ||||
-rw-r--r-- | docs/appendix-b.md | 2 | ||||
-rw-r--r-- | docs/appendix-c.md | 2 | ||||
-rw-r--r-- | ebook/metadata.xml | 7 | ||||
-rw-r--r-- | ebook/title.txt | 2 |
6 files changed, 102 insertions, 3 deletions
diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..68c179a --- /dev/null +++ b/Makefile @@ -0,0 +1,90 @@ +BUILD = build +BOOKNAME = fsfs-zh +TITLE = ebook/title.txt +METADATA = ebook/metadata.xml +TOC = --toc --toc-depth=2 --epub-chapter-level=2 +CHAPTERS = docs/foreword-trans.md \ + docs/foreword-v3.md \ + docs/foreword-v1.md \ + docs/preface-v3.md \ + docs/free-sw.md \ + docs/thegnuproject.md \ + docs/initial-announcement.md \ + docs/free-software-even-more-important.md \ + docs/edu-schools.md \ + docs/government-free-software.md \ + docs/free-doc.md \ + docs/selling.md \ + docs/free-hardware-designs.md \ + docs/applying-free-sw-criteria.md \ + docs/why-gnu-linux.md \ + docs/linux-and-gnu.md \ + docs/categories.md \ + docs/open-source-misses-the-point.md \ + docs/not-ipr.md \ + docs/why-call-it-the-swindle.md \ + docs/words-to-avoid.md \ + docs/right-to-read.md \ + docs/misinterpreting-copyright.md \ + docs/push-copyright-aside.md \ + docs/copyright-vs-community.md \ + docs/software-literary-patents.md \ + docs/danger-of-software-patents.md \ + docs/limit-patent-effect.md \ + docs/licenses-introduction.md \ + docs/license-recommendations.md \ + docs/x.md \ + docs/programs-must-not-limit-freedom-to-run.md \ + docs/copyleft.md \ + docs/why-copyleft.md \ + docs/pragmatic.md \ + docs/gpl.md \ + docs/rms-why-gplv3.md \ + docs/lgpl.md \ + docs/fdl.md \ + docs/selling-exceptions.md \ + docs/can-you-trust.md \ + docs/javascript-trap.md \ + docs/university.md \ + docs/nonfree-games.md \ + docs/the-danger-of-ebooks.md \ + docs/ebooks-must-increase-freedom.md \ + docs/who-does-that-server-really-serve.md \ + docs/compromise.md \ + docs/social-inertia.md \ + docs/freedom-or-power.md \ + docs/imperfection-isnt-oppression.md \ + docs/surveillance-vs-democracy.md \ + docs/appendix-a.md \ + docs/appendix-b.md \ + docs/appendix-c.md \ + +all: book + +book: epub html + +clean: + rm -r site + rm $(BOOKNAME).* + +epub: $(BOOKNAME).epub + +html: $(BOOKNAME).html + +#pdf: $(BUILD)/$(BOOKNAME).pdf + +$(BOOKNAME).epub: $(TITLE) $(CHAPTERS) + cp -r docs/fs-translations/ . + cp docs/*.png . + pandoc $(TOC) -S --epub-metadata=$(METADATA) -o $@ $^ + rm -fr fs-translations + rm *.png + +$(BOOKNAME).html: $(CHAPTERS) + pandoc $(TOC) --standalone --to=html5 -o $@ $^ + mkdocs --clean + +#$(BUILD)/$(BOOKNAME).pdf: $(TITLE) $(CHAPTERS) +# pandoc $(TOC) --latex-engine=xelatex -V documentclass=$(LATEX_CLASS) -o $@ $^ + +.PHONY: all book clean epub html diff --git a/docs/appendix-a.md b/docs/appendix-a.md index 6d4315c..2e6f631 100644 --- a/docs/appendix-a.md +++ b/docs/appendix-a.md @@ -1,4 +1,4 @@ -##关于软件的基础知识 +## 附录A:关于软件的基础知识 > Copyright © 2002 Richard E.Buckman and Joshua Gay. 此文最早发布于 2002 年。 diff --git a/docs/appendix-b.md b/docs/appendix-b.md index 43edea8..6c86d54 100644 --- a/docs/appendix-b.md +++ b/docs/appendix-b.md @@ -1,4 +1,4 @@ -## 不同语言对“自由软件”和“免费软件”的翻译 +## 附录B:不同语言对“自由软件”和“免费软件”的翻译 > Copyright © 1999, 2000, 2004, 2006–2015 自由软件基金会 > 更新的翻译列表可参见 <http://gnu.org/philosophy/fs-translations.html>。增加新的语种翻译可联系 <web-translators@gnu.org>。 diff --git a/docs/appendix-c.md b/docs/appendix-c.md index 37f7b49..360417f 100644 --- a/docs/appendix-c.md +++ b/docs/appendix-c.md @@ -1,4 +1,4 @@ -## 自由软件之歌 +## 附录C:自由软件之歌 > Copyright © 2010 Richard Stallman。理查德·斯托曼于1991年写出此歌词。 diff --git a/ebook/metadata.xml b/ebook/metadata.xml new file mode 100644 index 0000000..7d91605 --- /dev/null +++ b/ebook/metadata.xml @@ -0,0 +1,7 @@ +<dc:title>自由软件,自由社会(第三版)</dc:title> +<dc:language>zh-CN</dc:language> +<dc:creator opf:file-as="Doe, John" opf:role="aut">John Doe</dc:creator> +<dc:publisher>John Doe Publishing</dc:publisher> +<dc:date opf:event="publication">2013-11-07</dc:date> +<dc:rights>Copyright ©2013 by John Doe</dc:rights> + diff --git a/ebook/title.txt b/ebook/title.txt new file mode 100644 index 0000000..6670322 --- /dev/null +++ b/ebook/title.txt @@ -0,0 +1,2 @@ +% 自由软件,自由社会(第三版) +% Richard .M Stallman 著,北京 GNU/Linux 用户组中译 |