summaryrefslogtreecommitdiff
path: root/servergreps/hercules/update.sh
blob: 4602b69ebc6f50bb58488f7f75b97a2fb8030ea4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

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