summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-28 23:10:45 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-28 23:10:45 +0000
commit1d0fcf308929bde5749b889373d5c2f338fa8969 (patch)
tree624b053028a1ff9505b9fd297107278c5273e17d /mixlib
parent08ae1393b7d415355308856618ca96c3ba2cfbd0 (diff)
downloadmdk-1d0fcf308929bde5749b889373d5c2f338fa8969.tar.gz
mdk-1d0fcf308929bde5749b889373d5c2f338fa8969.tar.bz2
uniform command line options handling
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix.c10
-rw-r--r--mixlib/mix.h6
2 files changed, 15 insertions, 1 deletions
diff --git a/mixlib/mix.c b/mixlib/mix.c
index 8f49303..af1ba40 100644
--- a/mixlib/mix.c
+++ b/mixlib/mix.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mix.c :
* Implementation of the functions declared in mix.h
* ------------------------------------------------------------------
- * $Id: mix.c,v 1.3 2001/09/24 23:26:31 jao Exp $
+ * $Id: mix.c,v 1.4 2001/09/28 23:10:45 jao Exp $
* ------------------------------------------------------------------
* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
*
@@ -60,6 +60,14 @@ const char *MIX_GPL_LICENSE =
"under the terms of the GNU General Public License.\n"
"For more information about these matters, see the files named COPYING.\n";
+void
+mix_print_license (const gchar *program)
+{
+ fprintf (stderr, _("%s (GNU MDK %s)\n\n"),
+ program, VERSION);
+ fprintf (stderr, MIX_GPL_LICENSE);
+}
+
/* check dir, and create it if it doesn't exist */
gboolean
mix_stat_dir (const gchar *dirname, const gchar *alias)
diff --git a/mixlib/mix.h b/mixlib/mix.h
index 2d45636..01a57fa 100644
--- a/mixlib/mix.h
+++ b/mixlib/mix.h
@@ -1,6 +1,8 @@
/* -*-c-*- ---------------- mix.h :
* Initialisation of the mix library
* ------------------------------------------------------------------
+ * $Id: mix.h,v 1.4 2001/09/28 23:10:45 jao Exp $
+ * ------------------------------------------------------------------
* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
@@ -60,6 +62,10 @@ mix_release_lib (void);
extern const char *MIX_GPL_LICENSE;
+extern void
+mix_print_license (const gchar *program);
+
+
/* check dir, and create it if it doesn't exist */
extern gboolean
mix_stat_dir (const gchar *dirname, const gchar *alias);