Skip to content

Commit e76772c

Browse files
author
nofantasy
committed
Provide updated patch for Mangos (8095) and restore option to use "git am". Update How To Install.txt accordingly and clarify why/when patch is needed also for Windows.
git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@1183 5f9c896b-1e26-0410-94da-f77f675e2462
1 parent cf22855 commit e76772c

File tree

3 files changed

+26
-36
lines changed

3 files changed

+26
-36
lines changed

docs/How to install.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
MS Windows:
99
- Create a new folder under "src\bindings\" within the MaNGOS source called "ScriptDev2"
1010
- Checkout the ScriptDev2 trunk from "https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2"
11-
- Apply the Git patch to Mangos - "git apply src/bindings/ScriptDev2/patches/MaNGOS-XXXX-ScriptDev2.patch" ('XXXX' is revision number for Mangos).
11+
- Apply the Git patch to Mangos - "git am src/bindings/ScriptDev2/patches/MaNGOS-XXXX-ScriptDev2.patch" ('XXXX' is revision number for Mangos). (Note this is not required for compile, but needed to avoid deletion of untracked folders/files in GIT-directory when using certain GIT commands (example: git clean -f -d))
1212
- Compile MaNGOS
1313
- Compile ScriptDev2 using the ScriptVC80 or ScriptVC90 Solution within the ScriptDev2 folder (this will overwrite the Mangoscript dll in the output directory)
1414

@@ -17,7 +17,7 @@ GNU/Linux:
1717
SVN:
1818
- Apply MaNGOS-XXXX-ScriptDev2.patch to Mangos, where XXXX is the highest version to that of your MaNGOS revision.
1919
GIT:
20-
- Apply the Git patch to Mangos - "git apply src/bindings/ScriptDev2/patches/MaNGOS-XXXX-ScriptDev2.patch"
20+
- Apply the Git patch to Mangos - "git am src/bindings/ScriptDev2/patches/MaNGOS-XXXX-ScriptDev2.patch"
2121

2222
- Compile MaNGOS (ScriptDev2 will automatically be built when compiling Mangos from here on)
2323

-1.24 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
From c73015a64b7956e7456330c31f2b1070ce36ae8a Mon Sep 17 00:00:00 2001
1+
From 46317d767d5d2a4622e4e3ad67ec9b6e28b49c60
22
From: freghar <[email protected]>
3-
Date: Thu, 23 Oct 2008 11:39:42 +0200
3+
Date: Mon, 29 Jun 2009 14:02:50 +0200
44
Subject: [PATCH] ScriptDev2 patch commit
55

66
Signed-off-by: freghar <[email protected]>
77
---
88
configure.ac | 6 +++++-
9-
src/bindings/.gitignore | 12 ++++++++++++
9+
src/bindings/.gitignore | 2 +-
1010
src/bindings/Makefile.am | 2 +-
1111
src/mangosd/Makefile.am | 4 ++--
12-
4 files changed, 20 insertions(+), 4 deletions(-)
13-
create mode 100644 src/bindings/.gitignore
12+
4 files changed, 9 insertions(+), 5 deletions(-)
1413

1514
diff --git a/configure.ac b/configure.ac
16-
index b193e6f..91a54bd 100644
15+
index 7a1b219..8cc9bfe 100644
1716
--- a/configure.ac
1817
+++ b/configure.ac
19-
@@ -312,7 +312,11 @@ AC_CONFIG_FILES([
18+
@@ -276,7 +276,11 @@ AC_CONFIG_FILES([
2019
src/mangosd/Makefile
2120
src/mangosd/mangosd.conf.dist
2221
src/bindings/Makefile
@@ -27,25 +26,17 @@ index b193e6f..91a54bd 100644
2726
+ src/bindings/ScriptDev2/sql/Makefile
2827
+ src/bindings/ScriptDev2/sql/Updates/Makefile
2928
])
30-
29+
3130
## Configure ACE, if needed
3231
diff --git a/src/bindings/.gitignore b/src/bindings/.gitignore
33-
new file mode 100644
34-
index 0000000..06df6e6
35-
--- /dev/null
32+
index eeddf0d..95eebf7 100644
33+
--- a/src/bindings/.gitignore
3634
+++ b/src/bindings/.gitignore
37-
@@ -0,0 +1,12 @@
38-
+#
39-
+# NOTE! Don't add files that are generated in specific
40-
+# subdirectories here. Add them in the ".gitignore" file
41-
+# in that subdirectory instead.
42-
+#
43-
+# NOTE! Please use 'git-ls-files -i --exclude-standard'
44-
+# command after changing this file, to see if there are
45-
+# any tracked files which get ignored after the change.
46-
+#
47-
+
48-
+# ScriptDev2 directory
35+
@@ -11,4 +11,4 @@
36+
#
37+
# Scripting projects
38+
#
39+
-#universal
4940
+ScriptDev2
5041
diff --git a/src/bindings/Makefile.am b/src/bindings/Makefile.am
5142
index 2cc0efd..f2dbbc7 100644
@@ -54,24 +45,23 @@ index 2cc0efd..f2dbbc7 100644
5445
@@ -14,4 +14,4 @@
5546
# along with this program; if not, write to the Free Software
5647
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
57-
48+
5849
-SUBDIRS = universal
5950
+SUBDIRS = ScriptDev2
6051
diff --git a/src/mangosd/Makefile.am b/src/mangosd/Makefile.am
61-
index b7106cc..706d8ad 100644
52+
index d853203..899b141 100644
6253
--- a/src/mangosd/Makefile.am
6354
+++ b/src/mangosd/Makefile.am
6455
@@ -33,8 +33,8 @@ mangos_worldd_SOURCES = \
65-
WorldRunnable.h
66-
56+
WorldRunnable.h
57+
6758
## Link world daemon against the shared library
68-
-mangos_worldd_LDADD = ../bindings/universal/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/libZThread.la ../../dep/src/g3dlite/libg3dlite.a
69-
-mangos_worldd_LDFLAGS = -L../../dep/src/sockets -L../../dep/src/zthread -L../../dep/src/g3dlite -L../bindings/universal/ -L$(libdir) $(MANGOS_LIBS) -export-dynamic
70-
+mangos_worldd_LDADD = ../bindings/ScriptDev2/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/libZThread.la ../../dep/src/g3dlite/libg3dlite.a
71-
+mangos_worldd_LDFLAGS = -L../../dep/src/sockets -L../../dep/src/zthread -L../../dep/src/g3dlite -L../bindings/ScriptDev2/ -L$(libdir) $(MANGOS_LIBS) -export-dynamic
72-
59+
-mangos_worldd_LDADD = ../bindings/universal/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/g3dlite/libg3dlite.a
60+
-mangos_worldd_LDFLAGS = -L../../dep/src/sockets -L../../dep/src/g3dlite -L../bindings/universal/ -L$(libdir) $(MANGOS_LIBS) -export-dynamic
61+
+mangos_worldd_LDADD = ../bindings/ScriptDev2/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/g3dlite/libg3dlite.a
62+
+mangos_worldd_LDFLAGS = -L../../dep/src/sockets -L../../dep/src/g3dlite -L../bindings/ScriptDev2/ -L$(libdir) $(MANGOS_LIBS) -export-dynamic
63+
7364
## Additional files to include when running 'make dist'
7465
# Include world daemon configuration
75-
--
66+
--
7667
1.5.6.5
77-

0 commit comments

Comments
 (0)