summaryrefslogtreecommitdiff
path: root/localserver/applicator.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-19 20:56:53 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-19 20:56:53 -0300
commit7663691709796dcd349e0ca8c06037a3edc23e69 (patch)
tree980d12c72e63825970a59f429eeccf37bb98a5ed /localserver/applicator.py
parent0bb07e44f17eb7a1ec976693aa6d2e89cc87aa4b (diff)
downloadtools-7663691709796dcd349e0ca8c06037a3edc23e69.tar.gz
tools-7663691709796dcd349e0ca8c06037a3edc23e69.tar.bz2
tools-7663691709796dcd349e0ca8c06037a3edc23e69.tar.xz
tools-7663691709796dcd349e0ca8c06037a3edc23e69.zip
Add support to HercWS Upstream patches
Diffstat (limited to 'localserver/applicator.py')
-rw-r--r--localserver/applicator.py24
1 files changed, 24 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"
+