From da870022173178815e92b5d8f16563ac8134561a Mon Sep 17 00:00:00 2001 From: eroen Date: Wed, 13 Aug 2014 03:38:17 +0200 Subject: dfhack - (patch) look for dfhack.init-example in the right place --- .../11-dfhack-init-example.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 games-util/dfhack/files/dfhack-0.40.08_pre9999/11-dfhack-init-example.patch (limited to 'games-util') diff --git a/games-util/dfhack/files/dfhack-0.40.08_pre9999/11-dfhack-init-example.patch b/games-util/dfhack/files/dfhack-0.40.08_pre9999/11-dfhack-init-example.patch new file mode 100644 index 00000000..55ef5778 --- /dev/null +++ b/games-util/dfhack/files/dfhack-0.40.08_pre9999/11-dfhack-init-example.patch @@ -0,0 +1,39 @@ +dfhack.init.example + +From: eroen + + +--- + library/CMakeLists.txt | 2 +- + library/Core.cpp | 4 ++++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt +index 50ac9f2..eac23db 100644 +--- a/library/CMakeLists.txt ++++ b/library/CMakeLists.txt +@@ -350,7 +350,7 @@ install(FILES xml/symbols.xml + DESTINATION ${DFHACK_DATA_DESTINATION}) #linux: share/dfhack + #install the example autoexec file + install(FILES ../dfhack.init-example +- DESTINATION ${DFHACK_USERDOC_DESTINATION}) ++ DESTINATION ${DFHACK_DATA_DESTINATION}) + + install(TARGETS dfhack-run dfhack-client binpatch + LIBRARY DESTINATION ${DFHACK_LIBRARY_DESTINATION} +diff --git a/library/Core.cpp b/library/Core.cpp +index 8906f85..8ef600c 100644 +--- a/library/Core.cpp ++++ b/library/Core.cpp +@@ -864,7 +864,11 @@ static void run_dfhack_init(color_ostream &out, Core *core) + if (!core->loadScriptFile(out, "dfhack.init", true)) + { + core->runCommand(out, "gui/no-dfhack-init"); ++#ifdef DFHACK_DATA_DESTINATION ++ core->loadScriptFile(out, DFHACK_DATA_DESTINATION "/dfhack.init-example", true); ++#else + core->loadScriptFile(out, "dfhack.init-example", true); ++#endif + } + } + -- cgit v1.2.1