From 8ab74e16d7bc203ef277d72fd41a1fdb4e787c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 11 May 2013 04:17:39 +0200 Subject: [PATCH] Rename the project --- .gitignore | 10 +++++----- Makefile | 4 ++-- src/{sdcli.c => sdtui.c} | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) rename src/{sdcli.c => sdtui.c} (97%) diff --git a/.gitignore b/.gitignore index f4d000c..3dc61b6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,15 @@ # Backup files *.*~ # Compile output -/sdcli +/sdtui /add-pronunciation /test-stardict *.o # IDE project files -/sdcli.creator* -/sdcli.includes -/sdcli.files -/sdcli.config +/sdtui.creator* +/sdtui.includes +/sdtui.files +/sdtui.config # Blah /GNUmakefile /.clang_complete diff --git a/Makefile b/Makefile index 55c9321..6cac2cc 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL = /bin/sh pkgs = ncursesw glib-2.0 gio-2.0 tests = test-stardict -targets = sdcli add-pronunciation $(tests) +targets = sdtui add-pronunciation $(tests) CFLAGS = -ggdb -std=gnu99 -Wall -Wextra -Wno-missing-field-initializers \ `pkg-config --cflags $(pkgs)` @@ -15,7 +15,7 @@ all: $(targets) clean: rm -f $(targets) src/*.o -sdcli: src/sdcli.o src/stardict.o +sdtui: src/sdtui.o src/stardict.o $(CC) $^ -o $@ $(LDFLAGS) add-pronunciation: src/add-pronunciation.o src/stardict.o src/generator.o diff --git a/src/sdcli.c b/src/sdtui.c similarity index 97% rename from src/sdcli.c rename to src/sdtui.c index 8a8f4ca..e6cc058 100644 --- a/src/sdcli.c +++ b/src/sdtui.c @@ -1,5 +1,5 @@ /* - * StarDict console UI + * StarDict terminal UI * * Copyright (c) 2013, Přemysl Janouch * All rights reserved. @@ -214,11 +214,11 @@ main (int argc, char *argv[]) abort (); GError *error = NULL; - GOptionContext *ctx = g_option_context_new ("- StarDict console UI"); + GOptionContext *ctx = g_option_context_new ("- StarDict terminal UI"); g_option_context_add_main_entries (ctx, entries, NULL); if (!g_option_context_parse (ctx, &argc, &argv, &error)) { - g_print ("option parsing failed: %s\n", error->message); + g_printerr ("Error: option parsing failed: %s\n", error->message); exit (EXIT_FAILURE); }