diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-20 14:03:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-20 14:03:35 -0300 |
commit | 77eceb6b2fe0b5984dea2cd8303a4a96f54cf921 (patch) | |
tree | a50348cfb881daefcce4c3fbba99534ccb6f6442 /.tools/applicator.py | |
parent | 81bdb90dce2b92d4402c3b34ac18e528ba457d44 (diff) | |
download | serverdata-77eceb6b2fe0b5984dea2cd8303a4a96f54cf921.tar.gz serverdata-77eceb6b2fe0b5984dea2cd8303a4a96f54cf921.tar.bz2 serverdata-77eceb6b2fe0b5984dea2cd8303a4a96f54cf921.tar.xz serverdata-77eceb6b2fe0b5984dea2cd8303a4a96f54cf921.zip |
Give EXP to homunculus even if they don't fight (a bonus from master EXP)
Diffstat (limited to '.tools/applicator.py')
-rw-r--r-- | .tools/applicator.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.tools/applicator.py b/.tools/applicator.py new file mode 100644 index 000000000..7d5761b0e --- /dev/null +++ b/.tools/applicator.py @@ -0,0 +1,20 @@ +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() |