summaryrefslogtreecommitdiff
path: root/servergreps
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-07 20:49:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-07 20:51:35 +0300
commite1f15dbd65e6cf2883c7106c376be29090223b6d (patch)
tree6ec01397fb07c8ce2ae05c7fb52aa9e0656db492 /servergreps
parent38d738d7853997cb8e70057913629cdbf7bcc467 (diff)
downloadevol-tools-e1f15dbd65e6cf2883c7106c376be29090223b6d.tar.gz
evol-tools-e1f15dbd65e6cf2883c7106c376be29090223b6d.tar.bz2
evol-tools-e1f15dbd65e6cf2883c7106c376be29090223b6d.tar.xz
evol-tools-e1f15dbd65e6cf2883c7106c376be29090223b6d.zip
servergreps: get hercules sources from links directory
Diffstat (limited to 'servergreps')
-rw-r--r--servergreps/.gitignore1
-rwxr-xr-xservergreps/hercules/update.sh6
2 files changed, 4 insertions, 3 deletions
diff --git a/servergreps/.gitignore b/servergreps/.gitignore
new file mode 100644
index 0000000..f2887a5
--- /dev/null
+++ b/servergreps/.gitignore
@@ -0,0 +1 @@
+/links/
diff --git a/servergreps/hercules/update.sh b/servergreps/hercules/update.sh
index 7b02954..dc10cc8 100755
--- a/servergreps/hercules/update.sh
+++ b/servergreps/hercules/update.sh
@@ -5,8 +5,8 @@ function preproc {
-DCOMMON_SOCKET_H \
"-DWFIFOW(fd,pos)=WFIFOW(fd,pos)" \
"-DWBUFW(p,pos)=WBUFW(p,pos)" \
- -I../../../server-code/src -I../../../server-code/3rdparty \
- ../../../server-code/src/$3/$4 \
+ -I../links/hercules/src -I../links/hercules/3rdparty \
+ ../links/hercules/src/$3/$4 \
$1/src/$4
}
@@ -14,7 +14,7 @@ function genpackets {
if [ ! -d "$1/src" ]; then
mkdir -p "$1/src"
fi
- cpp -DPACKETVER=$2 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../../../server-code/src/map/packets.h $1/src/packets.h
+ cpp -DPACKETVER=$2 "-Dpacket(id,size,...)=packet(id,size,__VA_ARGS__)" ../links/hercules/src/map/packets.h $1/src/packets.h
preproc $1 $2 map packets_struct.h
preproc $1 $2 char char.c
preproc $1 $2 login login.c