diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-03 17:20:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-03 17:20:44 +0300 |
commit | 562f2c5c5263d8abc330cf4e667ba1a4b18e58c6 (patch) | |
tree | b1ca4bde0153d8c4c64b65820a1e2e06025b563d /servergreps/hercules/update.sh | |
parent | 0732a6fe72c378bbac151749a0bab1a9dd7c1b8f (diff) | |
download | evol-tools-562f2c5c5263d8abc330cf4e667ba1a4b18e58c6.tar.gz evol-tools-562f2c5c5263d8abc330cf4e667ba1a4b18e58c6.tar.bz2 evol-tools-562f2c5c5263d8abc330cf4e667ba1a4b18e58c6.tar.xz evol-tools-562f2c5c5263d8abc330cf4e667ba1a4b18e58c6.zip |
servergreps: update script and generated packets.
Now script using cpp for preprocess packets.h for each version.
Diffstat (limited to 'servergreps/hercules/update.sh')
-rwxr-xr-x | servergreps/hercules/update.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/servergreps/hercules/update.sh b/servergreps/hercules/update.sh index 1876461..4602b69 100755 --- a/servergreps/hercules/update.sh +++ b/servergreps/hercules/update.sh @@ -1,6 +1,13 @@ #!/bin/bash -./packets.py 20141016 -./packets.py 20141022 -./packets.py 20150226 -./packets.py 20150513 +function genpackets { + cpp -DPACKETVER=$1 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../../../server-code/src/map/packets.h $1/packets.h + cpp -DPACKETVER=$1 -I../../../server-code/src ../../../server-code/src/map/packets_struct.h $1/packets_struct.h + ./packets.py $1 +} + +genpackets 20141016 +genpackets 20141022 +genpackets 20150226 +genpackets 20150513 +genpackets 20150805 |