From fb042840b1155304c1a18521bf3786adc79cda3a Mon Sep 17 00:00:00 2001 From: Judah Date: Tue, 5 Mar 2024 00:10:54 -0500 Subject: [PATCH] feat[makefile,convert] Added makefile checks I added further makefile checks for existing files. I also corrected the shebang on convert.py --- Makefile | 4 ++++ convert.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9bcacc4..373961a 100644 --- a/Makefile +++ b/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 diff --git a/convert.py b/convert.py index b735597..993d5d4 100755 --- a/convert.py +++ b/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 . -#/usr/bin/env python3 import json import pandas import re