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:
|
download:
|
||||||
ifeq ("$(wildcard ./esv.tsv)","") # Check if the file exists before downloading
|
ifeq ("$(wildcard ./esv.tsv)","") # Check if the file exists before downloading
|
||||||
ifeq ( $(strip $(unzip -v)), )
|
ifeq ( $(strip $(unzip -v)), )
|
||||||
|
ifeq ("$(wildcard ./ESV.json)","") # Check if the file exists before downloading
|
||||||
curl --location \
|
curl --location \
|
||||||
--request GET "https://bolls.life/static/translations/ESV.json" \
|
--request GET "https://bolls.life/static/translations/ESV.json" \
|
||||||
-o ESV.json
|
-o ESV.json
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
|
ifeq ("$(wildcard ./esv.zip)","") # Check if the file exists before downloading
|
||||||
curl --location \
|
curl --location \
|
||||||
--request GET "https://bolls.life/static/translations/ESV.zip" \
|
--request GET "https://bolls.life/static/translations/ESV.zip" \
|
||||||
-o esv.zip
|
-o esv.zip
|
||||||
|
endif
|
||||||
unzip esv.zip
|
unzip esv.zip
|
||||||
endif
|
endif
|
||||||
./convert.py
|
./convert.py
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
# Convert.py
|
# Convert.py
|
||||||
# Copyright (C) 2024 Judah Sotomayor
|
# Copyright (C) 2024 Judah Sotomayor
|
||||||
|
|
||||||
@ -14,7 +15,6 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#/usr/bin/env python3
|
|
||||||
import json
|
import json
|
||||||
import pandas
|
import pandas
|
||||||
import re
|
import re
|
||||||
|
Loading…
Reference in New Issue
Block a user