tian@ubuntu:/mnt/f/GitHub$ git clone https://github.com/taseikyo/arts.git
tian@ubuntu:/mnt/f/GitHub$ cd arts
tian@ubuntu:/mnt/f/GitHub/arts$ chmod +x ./epub.sh
tian@ubuntu:/mnt/f/GitHub/arts$ ./epub.sh
Generate title.txt
Generate temporary folder
Modify the path of images
Modify the anchor of Weeklys
Modify the anchor of README.md & Weeklys
Generate epub file using pandoc
Remove temporary folder
Remove title.txt
Reset README.md
Updated 1 path from the index
于是一个 "arts.epub" 文档就生成了,可能会报下面错误,用 vim 打开,设置文件格式为 unix 类型(:set ff=unix),然后运行。
tian@ubuntu:/mnt/f/GitHub/arts$ ./epub.sh
./epub.sh: line 6: $'\r': command not found