Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit 0729c41

Browse files
windymillacpeel
authored andcommitted
Get tidy.conf more automatically
Simplify script and make it extract the version automatically. Also clarify docs.
1 parent b1609d1 commit 0729c41

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,11 @@ any other changes before tagging and releasing a new binary.
171171
172172
If ebookmaker crashes and the traceback refers to imported packages, it
173173
may be that one of the packages has been updated, requiring an updated
174-
version of pyinstaller:
174+
version of pyinstaller. Try upgrading to the latest version of PyInstaller
175+
by finding the [latest released version](https://github.com/pyinstaller/pyinstaller/releases)
176+
and upgrading to it with:
175177
```
176-
pipenv install "pyinstaller==4.7"
178+
pipenv install "pyinstaller==$LATEST_RELEASE"
177179
```
178180
179181
An error such as `local variable 'xxxx' referenced before assignment` may

get_tidy_conf.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
set -e
77

8-
VERSION=0.11.26
8+
VERSION=$(grep ebookmaker Pipfile | tr -d '"' | sed 's/.*==//')
99

10-
rm -rf ebookmaker.zip ebmtemp
11-
curl -L -o ebookmaker.zip https://github.com/gutenbergtools/ebookmaker/archive/refs/tags/$VERSION.zip
12-
unzip -q ebookmaker.zip -d ebmtemp
13-
cp ebmtemp/ebookmaker-$VERSION/ebookmaker/parsers/tidy.conf dist
14-
rm -rf ebookmaker.zip ebmtemp
10+
curl -L -o dist/tidy.conf https://github.com/gutenbergtools/ebookmaker/raw/$VERSION/ebookmaker/parsers/tidy.conf

0 commit comments

Comments
 (0)