summaryrefslogtreecommitdiff
path: root/servergreps/hercules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-05 17:46:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-05 17:46:07 +0300
commit4b91c24b2aee5d7bd6d14c8b688f1078cfcce3b9 (patch)
tree886a8f9464b253c0c19a3f5e676221ebef81617a /servergreps/hercules
parent11a56ba1da1a84063f02979aef2a426b5782faa3 (diff)
downloadevol-tools-4b91c24b2aee5d7bd6d14c8b688f1078cfcce3b9.tar.gz
evol-tools-4b91c24b2aee5d7bd6d14c8b688f1078cfcce3b9.tar.bz2
evol-tools-4b91c24b2aee5d7bd6d14c8b688f1078cfcce3b9.tar.xz
evol-tools-4b91c24b2aee5d7bd6d14c8b688f1078cfcce3b9.zip
servergreps: save temp files into subdirectory hercules.
Diffstat (limited to 'servergreps/hercules')
-rwxr-xr-xservergreps/hercules/src/hercules.py8
-rwxr-xr-xservergreps/hercules/update.sh9
2 files changed, 8 insertions, 9 deletions
diff --git a/servergreps/hercules/src/hercules.py b/servergreps/hercules/src/hercules.py
index 1fd99e6..ad82b4e 100755
--- a/servergreps/hercules/src/hercules.py
+++ b/servergreps/hercules/src/hercules.py
@@ -158,10 +158,10 @@ class Hercules:
def processPackets(self, packetDir, packetVersion):
- namedPacketsPath = packetDir + "/src/packets_struct.h"
- srcPath = packetDir + "/src"
- serverInPacketsHPath = packetDir + "/src/packets.h"
- serverLoginInPackets = packetDir + "/src/lclif.c"
+ namedPacketsPath = packetDir + "/src/hercules/packets_struct.h"
+ srcPath = packetDir + "/src/hercules"
+ serverInPacketsHPath = packetDir + "/src/hercules/packets.h"
+ serverLoginInPackets = packetDir + "/src/hercules/lclif.c"
self.collectNamedPackets(namedPacketsPath)
self.collectOutPackets(srcPath)
self.collectInPackets(serverInPacketsHPath, serverLoginInPackets)
diff --git a/servergreps/hercules/update.sh b/servergreps/hercules/update.sh
index 0ea0b5b..a668a86 100755
--- a/servergreps/hercules/update.sh
+++ b/servergreps/hercules/update.sh
@@ -7,14 +7,13 @@ function preproc {
"-DWBUFW(p,pos)=WBUFW(p,pos)" \
-I../links/$1/src -I../links/$1/3rdparty \
../links/$1/src/$4/$5 \
- $2/src/$5
+ $2/src/hercules/$5
}
function genpackets {
- if [ ! -d "$2/src" ]; then
- mkdir -p "$2/src"
- fi
- cpp -DPACKETVER=$3 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../links/$1/src/map/packets.h $2/src/packets.h
+ rm -rf "$2/src"
+ mkdir -p "$2/src/hercules"
+ cpp -DPACKETVER=$3 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../links/$1/src/map/packets.h $2/src/hercules/packets.h
preproc $1 $2 $3 map packets_struct.h
preproc $1 $2 $3 char char.c
preproc $1 $2 $3 login login.c