# HG changeset patch # User HackEso # Date 1523207188 -3600 # Node ID 380e297c7ae5bba92610d41a71920e98481ec2c9 # Parent 602a161bac233b1569fa4e1a1bb8bec1c7e9bcf5 sled bin/url//s,hackego.esolangs.org/fshg,hack.esolangs.org/repo,g;s,/index\\.cgi,, diff -r 602a161bac23 -r 380e297c7ae5 bin/url --- a/bin/url Sun Apr 08 08:07:16 2018 +0100 +++ b/bin/url Sun Apr 08 18:06:28 2018 +0100 @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys, os.path, re, urllib if len(sys.argv) <= 1: - print "https://hackego.esolangs.org/fshg/" + print "https://hack.esolangs.org/repo/" else: f = os.path.abspath(sys.argv[1]) f = re.sub(r"^/+hackenv/", "", f) @@ -10,5 +10,5 @@ elif re.match(r"tmp(?:/|$)",f): print ("https://hackego.esolangs.org/" + urllib.quote(f)) else: - print ("https://hackego.esolangs.org/fshg/index.cgi/file/tip/" + + print ("https://hack.esolangs.org/repo/file/tip/" + urllib.quote(f))