summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2023-10-12 18:33:50 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2023-10-14 18:58:26 -0600
commitb15e310abe81a952624c3e96dd117699de7359e1 (patch)
treee37194b595c121518d293560ae734ff7a6bc1bfb /Makefile
parent0f34be118ae3b89a707eca452ede80cb05bbc589 (diff)
Always pass -f (--fail) to curl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index ad7e53e..07bfa56 100644
--- a/Makefile
+++ b/Makefile
@@ -10,11 +10,7 @@ all:
$(MAKE) dat/urlkeys.mk
$(MAKE) dat/index.mk
$(MAKE) dat/git
-
-fix:
- grep -rl '<html><body><h1>503' dat | xargs rm -fv --
-
-.PHONY: all fix
+.PHONY: all
# Stage 1 ######################################################################
@@ -45,7 +41,7 @@ ifneq ($(wildcard dat/index.mk),)
dat/content-dir/%/index.wahtml:
@mkdir -p '$(@D)'
- curl -sL 'http://web.archive.org/web/$(call murl2url,$*)' > $@
+ curl -sfL 'http://web.archive.org/web/$(call murl2url,$*)' > $@
dat/content-dir/%/index.html: dat/content-dir/%/index.wahtml
< $< wayfore > $@
dat/content-dir/%/readme.txt: dat/content-dir/%/index.html
@@ -57,7 +53,7 @@ download += $(addsuffix readme.txt,$(content-dir)) $(addsuffix metadata.txt,$(co
dat/content-file/%:
@mkdir -p '$(@D)'
- curl -sL 'http://web.archive.org/web/$(call murl2url,$*)' > $@
+ curl -sfL 'http://web.archive.org/web/$(call murl2url,$*)' > $@
content-file = $(foreach u,$(filter-out %/,$(index)),dat/content-file/$(call url2murl,$(u)))
download += $(content-file)