14 lines
342 B
Bash
Executable File
14 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
|
|
METADATA_URL='https://github.com/hugovk/gutenberg-metadata/raw/master/gutenberg-metadata.json'
|
|
METADATA_FILE='tmp/gutenberg-metadata.json'
|
|
|
|
mkdir -p tmp
|
|
|
|
# download metadata file if it does not exists
|
|
if [ ! -f $METADATA_FILE ]; then
|
|
wget -O $METADATA_FILE $METADATA_URL
|
|
fi
|
|
|
|
python3 scripts/process-metadata.py $METADATA_FILE
|