Fix archive links.

This commit is contained in:
Brad Nelson
2021-06-19 21:06:39 -07:00
parent 7464a5cf9c
commit 72918d5d24
5 changed files with 6 additions and 5 deletions

View File

@ -330,8 +330,7 @@ publish-index: | $(GEN)
$(GSUTIL) ls gs://eforth/releases | tools/webindex.py >$(GEN)/archive.html $(GSUTIL) ls gs://eforth/releases | tools/webindex.py >$(GEN)/archive.html
$(GSUTIL_CP) \ $(GSUTIL_CP) \
$(GEN)/archive.html \ $(GEN)/archive.html \
gs://eforth/releases/index.html gs://eforth/releases/archive.html
$(GSUTIL) web set -m index.html -e 404.html gs://eforth
publish: publish-esp32 publish-linux publish-windows publish-index publish: publish-esp32 publish-linux publish-windows publish-index

View File

@ -29,7 +29,7 @@
<hr/> <hr/>
<p> <p>
<a href="https://eforth.storage.googleapis.com/releases/" target="_blank">Release Archive</a> <a href="https://eforth.storage.googleapis.com/releases/archive.html" target="_blank">Release Archive</a>
- Prior Releases - Prior Releases
</p> </p>
<p> <p>

View File

@ -28,7 +28,7 @@
<hr/> <hr/>
<p> <p>
<a href="https://eforth.storage.googleapis.com/releases/" target="_blank">Release Archive</a> <a href="https://eforth.storage.googleapis.com/releases/archive.html" target="_blank">Release Archive</a>
- Prior Releases - Prior Releases
</p> </p>
<p> <p>

View File

@ -32,7 +32,7 @@
<hr/> <hr/>
<p> <p>
<a href="https://eforth.storage.googleapis.com/releases/" target="_blank">Release Archive</a> <a href="https://eforth.storage.googleapis.com/releases/archive.html" target="_blank">Release Archive</a>
- Prior Releases - Prior Releases
</p> </p>
<p> <p>

View File

@ -13,4 +13,6 @@ sys.stdout.write("""<!DOCTYPE html>
for line in sys.stdin.read().splitlines(): for line in sys.stdin.read().splitlines():
url = line.replace('gs://eforth/', 'https://eforth.storage.googleapis.com/') url = line.replace('gs://eforth/', 'https://eforth.storage.googleapis.com/')
name = line.replace('gs://eforth/releases/', '') name = line.replace('gs://eforth/releases/', '')
if name == 'archive.html':
continue
sys.stdout.write('<a href="%s">%s</a><br/>\n' % (name, url)) sys.stdout.write('<a href="%s">%s</a><br/>\n' % (name, url))