diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-05 18:52:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-05 18:52:54 +0300 |
commit | 865c8e4bbf765e56852ec1aa74e7d9f7d8db63f5 (patch) | |
tree | a57e1c9e2bf68f3616bb92d39ee590b0b190d69d /servergreps/hercules/update.sh | |
parent | 4b91c24b2aee5d7bd6d14c8b688f1078cfcce3b9 (diff) | |
download | evol-tools-865c8e4bbf765e56852ec1aa74e7d9f7d8db63f5.tar.gz evol-tools-865c8e4bbf765e56852ec1aa74e7d9f7d8db63f5.tar.bz2 evol-tools-865c8e4bbf765e56852ec1aa74e7d9f7d8db63f5.tar.xz evol-tools-865c8e4bbf765e56852ec1aa74e7d9f7d8db63f5.zip |
servergreps: move all header manipulation code into python script.
Diffstat (limited to 'servergreps/hercules/update.sh')
-rwxr-xr-x | servergreps/hercules/update.sh | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/servergreps/hercules/update.sh b/servergreps/hercules/update.sh index a668a86..66401a8 100755 --- a/servergreps/hercules/update.sh +++ b/servergreps/hercules/update.sh @@ -1,26 +1,7 @@ #!/bin/bash -function preproc { - cpp -DPACKETVER=$3 \ - -DCOMMON_SOCKET_H \ - "-DWFIFOW(fd,pos)=WFIFOW(fd,pos)" \ - "-DWBUFW(p,pos)=WBUFW(p,pos)" \ - -I../links/$1/src -I../links/$1/3rdparty \ - ../links/$1/src/$4/$5 \ - $2/src/hercules/$5 -} - function genpackets { - 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 - preproc $1 $2 $3 map clif.c - preproc $1 $2 $3 login lclif.p.h - preproc $1 $2 $3 login lclif.c - ./packets.py $3 + ./packets.py $1 $2 $3 } genpackets hercules 00000000 0 |