Skip to content

Commit

Permalink
scripts-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb authored and rrthomas committed Jun 21, 2022
1 parent 3abcdf0 commit f34f96c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# run: python3 check-chapters.py

- name: install requirements
run: sh install_requirements.sh
run: sh scripts/install_requirements.sh

- name: print versions
run: |
Expand All @@ -52,10 +52,10 @@ jobs:
python3 --version
- name: make PDFs
run: sh make_pdfs.sh > /dev/null
run: sh scripts/make_pdfs.sh > /dev/null

- name: make eBooks
run: sh make_ebooks.sh
run: sh scripts/make_ebooks.sh

- name: test ls after
run: |
Expand Down
4 changes: 0 additions & 4 deletions cleanup.sh

This file was deleted.

4 changes: 0 additions & 4 deletions make_ebooks.sh

This file was deleted.

8 changes: 8 additions & 0 deletions scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# ensure we are in the hpmor root dir
script_dir=$(cd `dirname $0` && pwd)
cd $script_dir/..

latexmk -C
rm -rf ebook/tmp
File renamed without changes.
8 changes: 8 additions & 0 deletions scripts/make_ebooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# ensure we are in the hpmor root dir
script_dir=$(cd `dirname $0` && pwd)
cd $script_dir/..

cd ebook
python3 ./1_latex2html.py && sh ./2_html2epub.sh
4 changes: 4 additions & 0 deletions make_pdfs.sh → scripts/make_pdfs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# ensure we are in the hpmor root dir
script_dir=$(cd `dirname $0` && pwd)
cd $script_dir/..

latexmk hpmor

latexmk hpmor-1
Expand Down

0 comments on commit f34f96c

Please sign in to comment.