Add config as language file

This patch will change several behaviour while generating the ebook:

- `build.go` now accepts two environment variables: TMP, WORKDIR

    * TMP:

Temporary directory path.
The directory stores intermediate files like '*.html' or metadata.txt.

    * WORKDIR:

Script base directory.

- `config` as language file

config file will be `source`d to change its ebook metadata.

- `genepub.sh` is integrated to `build.sh` and `build.go`

See `FixHeader` and `RemoveFooterLink` functions.
This commit is contained in:
Shin Kojima
2013-12-31 06:42:13 +09:00
parent a0ca9d3556
commit dfe2104969
4 changed files with 130 additions and 68 deletions

6
ja/ebook/config Normal file
View File

@@ -0,0 +1,6 @@
MSG_INSTALL_PANDOC_FIRST='pandocをインストール後、再度実行してください。'
MSG_SUCCESSFULLY_GENERATED='build-web-application-with-golang.epub を作成しました'
MSG_CREATOR='Astaxie'
MSG_DESCRIPTION='オープンソースのGo Webプログラミング書籍'
MSG_LANGUAGE='ja-JP'
MSG_TITLE='Go Webプログラミング'