From de94ab8aa674bd4b398fdc6fe33f03f777ecabd1 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 29 Jul 2013 12:16:08 -0400 Subject: [PATCH] Fix usage text and rename executable --- .gitignore | 2 +- CMakeLists.txt | 4 ++-- mapper.cpp | 24 ++++++++++++------------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 782c330..351a8c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ colors.h colors.txt -minetest_mapper +minetestmapper CMakeCache.txt CMakeFiles/ Makefile diff --git a/CMakeLists.txt b/CMakeLists.txt index 304783e..9083a83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,13 +68,13 @@ set(mapper_SRCS mapper.cpp ) -add_executable(minetest_mapper +add_executable(minetestmapper ${mapper_HDRS} ${mapper_SRCS} ) target_link_libraries( - minetest_mapper + minetestmapper ${LIBSQLITE3_LIBRARIES} gd z diff --git a/mapper.cpp b/mapper.cpp index 99b3b99..14c69fa 100644 --- a/mapper.cpp +++ b/mapper.cpp @@ -19,18 +19,18 @@ using namespace std; void usage() { - const char *usage_text = "minetestmapper.py [options]\n\ - -i/--input \n\ - -o/--output \n\ - --bgcolor \n\ - --scalecolor \n\ - --playercolor \n\ - --origincolor \n\ - --drawscale\n\ - --drawplayers\n\ - --draworigin\n\ - --geometry x:y+w+h\n\ -Color format: '#000000'\n"; + const char *usage_text = "minetestmapper [options]\n" + " -i/--input \n" + " -o/--output \n" + " --bgcolor \n" + " --scalecolor \n" + " --playercolor \n" + " --origincolor \n" + " --drawscale\n" + " --drawplayers\n" + " --draworigin\n" + " --geometry x:y+w+h\n" + "Color format: '#000000'\n"; std::cout << usage_text; }