From 562f2c5c5263d8abc330cf4e667ba1a4b18e58c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2016 17:20:44 +0300 Subject: servergreps: update script and generated packets. Now script using cpp for preprocess packets.h for each version. --- servergreps/hercules/update.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'servergreps/hercules/update.sh') 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 -- cgit v1.2.3-70-g09d2