File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ function make_mobi () {
45
45
ls -lh " $PWD /$SLUG .mobi"
46
46
}
47
47
48
+
48
49
function install_deps_osx () {
49
50
# http://brew.sh
50
51
brew update
@@ -72,6 +73,23 @@ function install_deps_osx () {
72
73
}
73
74
74
75
76
+ function install_deps_linux() {
77
+ sudo apt-get update
78
+ sudo apt-get install -y dbtoepub docbook docbook-xsl epubcheck fop git python-pip python-virtualenv ruby2.0 ruby2.0-dev
79
+ # TODO Perhaps use rvm / rbenv to point to Ruby 2.0 by default
80
+
81
+ sudo pip install -U python-magic
82
+ sudo pip install -U https://github.com/s3tools/s3cmd/archive/master.zip
83
+
84
+ sudo gem2.0 install --no-rdoc --no-ri asciidoctor kindlegen pygments.rb
85
+ echo " Update PATH to point to kindlegen - see ` gem2.0 contents kindlegen | fgrep bin` "
86
+
87
+ mkdir -p $HOME /code/asciidoctor/
88
+ cd $HOME /code/asciidoctor/
89
+ git clone https://github.com/asciidoctor/asciidoctor-fopub
90
+ }
91
+
92
+
75
93
function s3_put () {
76
94
filename=$1
77
95
shift
@@ -103,7 +121,7 @@ function make_upload () {
103
121
104
122
say " Syncing to blog server"
105
123
cp -v " $SLUG .html" ../blog/notes/python/index.html
106
- rm -v ../blog/notes/python/* .png
124
+ rm -vf ../blog/notes/python/* .png
107
125
cp -v * .png ../blog/notes/python/
108
126
cd ../blog
109
127
blog_sync # Defined in ~/.bash_profile
You can’t perform that action at this time.
0 commit comments