mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
29 lines
1.0 KiB
Bash
29 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
# Script to upload libprs500 to pypi, the installer to libprs500.kovidgoyal.net and update the api documentation
|
|
|
|
PREFIX=/var/www/vhosts/kovidgoyal.net/subdomains/libprs500
|
|
DOWNLOADS=$PREFIX/httpdocs/downloads
|
|
DOCS=$PREFIX/httpdocs/apidocs
|
|
exe=`cd dist && ls -1 libprs500-*.exe | tail -n1 && cd ..`
|
|
HTML2LRF=src/libprs500/ebooks/lrf/html/demo
|
|
|
|
echo "<h2>The HTML</h2><pre>" > ${HTML2LRF}/demo_ext.html
|
|
cat ${HTML2LRF}/demo.html >> ${HTML2LRF}/demo_ext.html
|
|
echo '</pre>' >> ${HTML2LRF}/demo_ext.html
|
|
html2lrf --title='Demonstration of html2lrf' --author='Kovid Goyal' --header --output=/tmp/html2lrf.lrf ${HTML2LRF}/demo.html
|
|
scp /tmp/html2lrf.lrf castalia:$DOWNLOADS/
|
|
|
|
ssh castalia rm -f $DOWNLOADS/libprs500\*.exe
|
|
scp dist/$exe castalia:$DOWNLOADS/
|
|
ssh castalia chmod a+r $DOWNLOADS/\*
|
|
ssh castalia /root/bin/update-installer-link $exe
|
|
|
|
epydoc --config epydoc.conf
|
|
scp -r docs/html castalia:$DOCS/
|
|
epydoc -v --config epydoc-pdf.conf
|
|
scp docs/pdf/api.pdf castalia:$DOCS/
|
|
|
|
python setup.py register sdist bdist_egg upload
|
|
rm -rf dist/* build/*
|