diff options
-rw-r--r-- | localserver/applicator.py | 24 | ||||
-rw-r--r-- | localserver/reapply.patch4 | 5 |
2 files changed, 29 insertions, 0 deletions
diff --git a/localserver/applicator.py b/localserver/applicator.py index 7d5761b..571d10f 100644 --- a/localserver/applicator.py +++ b/localserver/applicator.py @@ -18,3 +18,27 @@ for line in f: f.close() +print "Evol porting finished" + + +############################################### +# Open reapply.patch4 (HerculesWS Upstream) +f=open("reapply.patch4", "r") +subprocess.call("cd ../../server-code", shell=True) + +for line in f: + if line[0] == "#" or line[0] == "\r" or line[0] == "\n": + continue + print "Downloading patch "+line.replace("\n", "") + subprocess.call("cd ../../server-code ; wget https://github.com/HerculesWS/Hercules/commit/"+line.replace("\n", "")+".diff", shell=True) + print "Applying patch..." + #subprocess.call("cd ../../server-code ; ls", shell=True) + subprocess.call("cd ../../server-code ; git apply --ignore-whitespace --reject "+line.replace("\n", "")+".diff", shell=True) + print "Patch applied" + subprocess.call("cd ../../server-code ; rm "+line.replace("\n", "")+".diff", shell=True) + print "Patch deleted (success)" + + +f.close() +print "HercWS porting finished" + diff --git a/localserver/reapply.patch4 b/localserver/reapply.patch4 new file mode 100644 index 0000000..64c0182 --- /dev/null +++ b/localserver/reapply.patch4 @@ -0,0 +1,5 @@ +############ +## v2019.07.28 + +## <Commit Short Summary> +# <full commit ID> |