summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-15 09:43:14 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-15 09:43:14 -0700
commit3a6652634b2152352f6f5a2b9ee3d549140ae337 (patch)
tree23afd77a8e218c2507901102bbb6b8149e396f40
parentefb1fa44b81419841d7c92104a69987c256a0028 (diff)
downloadsubsurface-3a6652634b2152352f6f5a2b9ee3d549140ae337.tar.gz
Rename the project 'subsurface'
I never really liked 'diveclog' as a name - it's not like the C part is all that important. And while I could try to just make up another slang word for despicable person (in the tradition of naming all my projects after myself), I just can't see it. So let's just call it "subsurface". Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--.gitignore2
-rw-r--r--Makefile4
-rw-r--r--README10
-rw-r--r--libdivecomputer.c2
-rw-r--r--main.c2
-rw-r--r--parse-xml.c4
-rw-r--r--save-xml.c2
7 files changed, 13 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore
index aeb949b3d..14742cce9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
*.o
-/divelog
+/subsurface
diff --git a/Makefile b/Makefile
index c78b806bb..fb84494fc 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ LIBDIVECOMPUTERARCHIVE = $(LIBDIVECOMPUTERDIR)/lib/libdivecomputer.a
OBJS = main.o dive.o profile.o info.o equipment.o divelist.o \
parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o
-divelog: $(OBJS)
- $(CC) $(LDFLAGS) -o divelog $(OBJS) \
+subsurface: $(OBJS)
+ $(CC) $(LDFLAGS) -o subsurface $(OBJS) \
`xml2-config --libs` \
`pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0` \
$(LIBDIVECOMPUTERARCHIVE)
diff --git a/README b/README
index 5947febb7..35c9c6913 100644
--- a/README
+++ b/README
@@ -18,7 +18,7 @@ You also need to have libdivecomputer installed, which goes something like this:
Usage:
make
- ./divelog dives/*.xml
+ ./subsurface dives/*.xml
to see my dives (with no notes or commentary).
@@ -26,15 +26,15 @@ Or, if you have a dive computer supported by libdivecomputer (and
connected to /dev/ttyUSB0), you can just do
make
- ./divelog
+ ./subsurface
and select "Import" from the File menu, tell it what dive computer you
have, and hit "OK".
There's a lot of duplicates in the XML files that come as an example,
-and divelog will de-duplicate the ones that are exactly the same (just
-because they were imported multiple times). But at least two of the
-dives have duplicates that were edited by Dirk in the Suunto Dive
+and subsurface will de-duplicate the ones that are exactly the same
+(just because they were imported multiple times). But at least two of
+the dives have duplicates that were edited by Dirk in the Suunto Dive
Manager, so they don't trigger the "exact duplicates" match.
WARNING! I wasn't kidding when I said that I've done this by reading
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 2b62fa365..49c4f3695 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -40,7 +40,7 @@ static void error(const char *fmt, ...)
va_start(args, fmt);
error = g_error_new_valist(
- g_quark_from_string("divelog"),
+ g_quark_from_string("subsurface"),
DIVE_ERROR_PARSE, fmt, args);
va_end(args);
report_error(error);
diff --git a/main.c b/main.c
index c7daf19d7..e6f58ce5b 100644
--- a/main.c
+++ b/main.c
@@ -19,7 +19,7 @@ struct DiveList dive_list;
GConfClient *gconf;
struct units output_units;
-#define GCONF_NAME(x) "/apps/diveclog/" #x
+#define GCONF_NAME(x) "/apps/subsurface/" #x
static int sortfn(const void *_a, const void *_b)
{
diff --git a/parse-xml.c b/parse-xml.c
index 82149cf8a..6bb78fdf6 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -521,7 +521,7 @@ static void fahrenheit(char *buffer, void *_temperature)
* pressures are in PSI. But the tank working pressure is in
* bar. WTF^2?
*
- * Crazy stuff like this is why diveclog has everything in
+ * Crazy stuff like this is why subsurface has everything in
* these inconvenient typed structures, and you have to say
* "pressure->mbar" to get the actual value. Exactly so that
* you can never have unit confusion.
@@ -1357,7 +1357,7 @@ void parse_xml_file(const char *filename, GError **error)
fprintf(stderr, "Failed to parse '%s'.\n", filename);
if (error != NULL)
{
- *error = g_error_new(g_quark_from_string("divelog"),
+ *error = g_error_new(g_quark_from_string("subsurface"),
DIVE_ERROR_PARSE,
"Failed to parse '%s'",
filename);
diff --git a/save-xml.c b/save-xml.c
index 47a8a7ebb..42bd17e9f 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -236,7 +236,7 @@ void save_dives(const char *filename)
/* Flush any edits of current dives back to the dives! */
update_dive(current_dive);
- fprintf(f, "<dives>\n<program name='diveclog' version='%d'></program>\n", VERSION);
+ fprintf(f, "<dives>\n<program name='subsurface' version='%d'></program>\n", VERSION);
for (i = 0; i < dive_table.nr; i++)
save_dive(f, get_dive(i));
fprintf(f, "</dives>\n");