feat[makefile,convert] Added makefile checks
I added further makefile checks for existing files. I also corrected the shebang on convert.py
This commit is contained in:
parent
6244d5f258
commit
fb042840b1
4
Makefile
4
Makefile
@ -32,13 +32,17 @@ esv.tsv: download
|
||||
download:
|
||||
ifeq ("$(wildcard ./esv.tsv)","") # Check if the file exists before downloading
|
||||
ifeq ( $(strip $(unzip -v)), )
|
||||
ifeq ("$(wildcard ./ESV.json)","") # Check if the file exists before downloading
|
||||
curl --location \
|
||||
--request GET "https://bolls.life/static/translations/ESV.json" \
|
||||
-o ESV.json
|
||||
endif
|
||||
else
|
||||
ifeq ("$(wildcard ./esv.zip)","") # Check if the file exists before downloading
|
||||
curl --location \
|
||||
--request GET "https://bolls.life/static/translations/ESV.zip" \
|
||||
-o esv.zip
|
||||
endif
|
||||
unzip esv.zip
|
||||
endif
|
||||
./convert.py
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
# Convert.py
|
||||
# Copyright (C) 2024 Judah Sotomayor
|
||||
|
||||
@ -14,7 +15,6 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#/usr/bin/env python3
|
||||
import json
|
||||
import pandas
|
||||
import re
|
||||
|
Loading…
Reference in New Issue
Block a user