Rename the project
This commit is contained in:
parent
1e0d43ef65
commit
8ab74e16d7
|
@ -1,15 +1,15 @@
|
||||||
# Backup files
|
# Backup files
|
||||||
*.*~
|
*.*~
|
||||||
# Compile output
|
# Compile output
|
||||||
/sdcli
|
/sdtui
|
||||||
/add-pronunciation
|
/add-pronunciation
|
||||||
/test-stardict
|
/test-stardict
|
||||||
*.o
|
*.o
|
||||||
# IDE project files
|
# IDE project files
|
||||||
/sdcli.creator*
|
/sdtui.creator*
|
||||||
/sdcli.includes
|
/sdtui.includes
|
||||||
/sdcli.files
|
/sdtui.files
|
||||||
/sdcli.config
|
/sdtui.config
|
||||||
# Blah
|
# Blah
|
||||||
/GNUmakefile
|
/GNUmakefile
|
||||||
/.clang_complete
|
/.clang_complete
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -2,7 +2,7 @@ SHELL = /bin/sh
|
||||||
|
|
||||||
pkgs = ncursesw glib-2.0 gio-2.0
|
pkgs = ncursesw glib-2.0 gio-2.0
|
||||||
tests = test-stardict
|
tests = test-stardict
|
||||||
targets = sdcli add-pronunciation $(tests)
|
targets = sdtui add-pronunciation $(tests)
|
||||||
|
|
||||||
CFLAGS = -ggdb -std=gnu99 -Wall -Wextra -Wno-missing-field-initializers \
|
CFLAGS = -ggdb -std=gnu99 -Wall -Wextra -Wno-missing-field-initializers \
|
||||||
`pkg-config --cflags $(pkgs)`
|
`pkg-config --cflags $(pkgs)`
|
||||||
|
@ -15,7 +15,7 @@ all: $(targets)
|
||||||
clean:
|
clean:
|
||||||
rm -f $(targets) src/*.o
|
rm -f $(targets) src/*.o
|
||||||
|
|
||||||
sdcli: src/sdcli.o src/stardict.o
|
sdtui: src/sdtui.o src/stardict.o
|
||||||
$(CC) $^ -o $@ $(LDFLAGS)
|
$(CC) $^ -o $@ $(LDFLAGS)
|
||||||
|
|
||||||
add-pronunciation: src/add-pronunciation.o src/stardict.o src/generator.o
|
add-pronunciation: src/add-pronunciation.o src/stardict.o src/generator.o
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* StarDict console UI
|
* StarDict terminal UI
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013, Přemysl Janouch <p.janouch@gmail.com>
|
* Copyright (c) 2013, Přemysl Janouch <p.janouch@gmail.com>
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
@ -214,11 +214,11 @@ main (int argc, char *argv[])
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
GError *error = NULL;
|
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);
|
g_option_context_add_main_entries (ctx, entries, NULL);
|
||||||
if (!g_option_context_parse (ctx, &argc, &argv, &error))
|
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);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue