Skip to content

Commit

Permalink
Merge pull request #7 from TimelyToga/master
Browse files Browse the repository at this point in the history
Cleaned up distribution script and README
  • Loading branch information
vjousse authored Oct 21, 2016
2 parents 581ac80 + 4617e9c commit 938a5d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You will need some prerequisites to be able to compile the LaTeX source code:

## Compile

After the dependencies have been installed, create the dist directory via `mkdir dist` then run `makedist.sh` script to start compiling. The compilation fails be sure to check the content of the script and try running each command one after another.
After the dependencies have been installed, run `makedist.sh` script to start compiling. If the compilation fails, be sure to check the content of the script and try running each command one after another.

## Enjoy

Expand Down
14 changes: 11 additions & 3 deletions makedist.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
#cd book-tex/
#pdflatex -shell-escape vim-pour-les-humains.tex
#pdflatex -shell-escape vim-pour-les-humains.tex
# Create dist/ if necessary
mkdir -p dist

# Create French Directory
cd rst/fr
make clean
make epub

# Create English Directory
cd ../en
make clean
make epub
make latexpdf
cd ../../dist

# Make Distribution
ts=`date +%s`
mkdir $ts
cd ..
Expand All @@ -18,8 +22,12 @@ cp rst/fr/_build/epub/Vimpourleshumains.epub dist/$ts/vim-pour-les-humains.epub
cp rst/en/_build/epub/Vimforhumans.epub dist/$ts/vim-for-humans.epub
cp rst/en/_build/latex/Vimforhumans.pdf dist/$ts/vim-for-humans.pdf
cd dist/$ts

# Create Kindle Versions
kindlegen vim-pour-les-humains.epub
kindlegen vim-for-humans.epub

# Zip
cd ..
rm -rf vimpourleshumains/
rm vimpourleshumains.zip
Expand Down

0 comments on commit 938a5d1

Please sign in to comment.