aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-05-11 04:17:39 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-05-11 04:17:39 +0200
commit8ab74e16d7bc203ef277d72fd41a1fdb4e787c01 (patch)
tree6f47fca29da1e5f1cfe46be53386201106141139
parent1e0d43ef656493e4dd9de7ac55b6d04625adce2c (diff)
downloadtdv-8ab74e16d7bc203ef277d72fd41a1fdb4e787c01.tar.gz
tdv-8ab74e16d7bc203ef277d72fd41a1fdb4e787c01.tar.xz
tdv-8ab74e16d7bc203ef277d72fd41a1fdb4e787c01.zip
Rename the project
-rw-r--r--.gitignore10
-rw-r--r--Makefile4
-rw-r--r--src/sdtui.c (renamed from src/sdcli.c)6
3 files changed, 10 insertions, 10 deletions
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
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 <p.janouch@gmail.com>
* 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);
}