From d39fe87adeb178d65f1d6ffefdda7c0541db277e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 16 Feb 2024 00:06:30 -0300 Subject: Purge applicator.py --- localserver/applicator.py | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 localserver/applicator.py diff --git a/localserver/applicator.py b/localserver/applicator.py deleted file mode 100644 index beb99a6..0000000 --- a/localserver/applicator.py +++ /dev/null @@ -1,45 +0,0 @@ -import subprocess - -# Open reapply.patch3 -f=open("reapply.patch3", "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://gitlab.com/evol/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 "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 --exclude=doc/ --exclude=tools/ --exclude=db/ --exclude=npc/ --exclude=conf/ --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" -subprocess.call("ls --recursive ../../server-code|grep rej", shell=True) - -- cgit v1.2.3-70-g09d2