summaryrefslogtreecommitdiff
path: root/servergreps
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-05 19:00:02 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-05 19:00:02 +0300
commitec73aec8c5610edb01d89bd6d92c3f31108c2b72 (patch)
tree07fbf016eee30f3bcf529022670e52d48bf52ec7 /servergreps
parent88763f13a0a77d90bcfc351add57d432e3852709 (diff)
downloadevol-tools-ec73aec8c5610edb01d89bd6d92c3f31108c2b72.tar.gz
evol-tools-ec73aec8c5610edb01d89bd6d92c3f31108c2b72.tar.bz2
evol-tools-ec73aec8c5610edb01d89bd6d92c3f31108c2b72.tar.xz
evol-tools-ec73aec8c5610edb01d89bd6d92c3f31108c2b72.zip
servergreps: store preprocessed files into src directory.
Diffstat (limited to 'servergreps')
-rwxr-xr-xservergreps/hercules/packets.py4
-rwxr-xr-xservergreps/hercules/update.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/servergreps/hercules/packets.py b/servergreps/hercules/packets.py
index 010b905..d654490 100755
--- a/servergreps/hercules/packets.py
+++ b/servergreps/hercules/packets.py
@@ -259,10 +259,10 @@ while len(packetDir) < 8:
packetDir = "0" + packetDir
srcPath = "../../../server-code/src/"
-namedPacketsPath = packetDir + "/packets_struct.h"
+namedPacketsPath = packetDir + "/src/packets_struct.h"
manaplusPath = "../../../manaplus/src/"
protocolPath = manaplusPath + "net/eathena/packets"
-clientPacketsPath = packetDir + "/packets.h"
+clientPacketsPath = packetDir + "/src/packets.h"
packetsPath = manaplusPath + "net/eathena/packetsin.inc"
eathenaPath = manaplusPath + "net/eathena/"
diff --git a/servergreps/hercules/update.sh b/servergreps/hercules/update.sh
index 0d956ec..925e84a 100755
--- a/servergreps/hercules/update.sh
+++ b/servergreps/hercules/update.sh
@@ -1,8 +1,8 @@
#!/bin/bash
function genpackets {
- cpp -DPACKETVER=$2 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../../../server-code/src/map/packets.h $1/packets.h
- cpp -DPACKETVER=$2 -I../../../server-code/src ../../../server-code/src/map/packets_struct.h $1/packets_struct.h
+ cpp -DPACKETVER=$2 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../../../server-code/src/map/packets.h $1/src/packets.h
+ cpp -DPACKETVER=$2 -I../../../server-code/src ../../../server-code/src/map/packets_struct.h $1/src/packets_struct.h
./packets.py $2
}