gopl-zh.github.com/Makefile

40 lines
996 B
Makefile
Raw Normal View History

2015-12-09 07:57:17 +00:00
# Copyright 2015 Golang-China. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# install gitbook
# npm install gitbook-cli -g
# https://github.com/GitbookIO/gitbook
# https://github.com/wastemobile/gitbook
2015-12-24 06:47:06 +00:00
# http://www.imagemagick.org/
2015-12-21 04:55:18 +00:00
default:
2015-12-09 07:57:17 +00:00
gitbook build
zh2tw:
go run zh2tw.go . .md$$
tw2zh:
go run zh2tw.go . .md$$ tw2zh
2015-12-21 04:55:18 +00:00
loop:
go run zh2tw.go . .md$$ tw2zh
go run zh2tw.go . .md$$ zh2tw
2015-12-24 06:47:06 +00:00
review:
go run zh2tw.go . .md$$ tw2zh
gitbook build
go run zh2tw.go . .md$$ zh2tw
cover:
composite cover_patch.png cover_bgd.png cover.jpg
convert -resize 1800x2360! cover.jpg cover.jpg
convert -resize 200x262! cover.jpg cover_small.jpg
convert -quality 75% cover.jpg cover.jpg
convert -quality 75% cover_small.jpg cover_small.jpg
convert -strip cover.jpg cover.jpg
convert -strip cover_small.jpg cover_small.jpg