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
commit8436c3e502103028e48b9a5165ea3d8ee60c48e0 (patch)
tree5b7606f428840addd23ff995d37deb5ea839342d /mixlib
parentb5127ef19ab31dd9de9fb62aa8dab3b815ef382d (diff)
downloadmdk-8436c3e502103028e48b9a5165ea3d8ee60c48e0.tar.gz
mdk-8436c3e502103028e48b9a5165ea3d8ee60c48e0.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);