misp-book/publish.sh

17 lines
342 B
Bash
Raw Normal View History

2017-08-25 07:15:26 +02:00
#!/bin/bash
echo "1/4 html"
2017-08-25 07:15:26 +02:00
gitbook build
echo "2/4 pdf"
2017-08-25 07:15:26 +02:00
gitbook pdf
echo "3/4 epub"
2017-08-25 07:15:26 +02:00
gitbook epub
echo "4/4 mobi"
2017-08-25 07:15:26 +02:00
gitbook mobi
echo "Done"
mv book.pdf _book
mv book.epub _book
mv book.mobi _book
chmod +r _book/book.pdf _book/book.epub _book/book.mobi
2017-08-25 07:15:26 +02:00
cd _book
rsync -azv . circl@cpab.circl.lu:/var/www/nwww.circl.lu/doc/misp/ && rm -rf _book