---- aumix-2.1/doc/aumix.1 Mon Jan 31 23:30:12 2000
-+++ aumix-2.1.pius/doc/aumix.1 Tue Feb 8 02:09:41 2000
+diff -Nru aumix-2.6.1/doc/aumix.1 aumix-2.6.1.new/doc/aumix.1
+--- aumix-2.6.1/doc/aumix.1 Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/doc/aumix.1 Tue Jun 27 23:11:28 2000
@@ -115,15 +115,19 @@
go into interactive mode after doing things non-interactively.
.It Fl L
.Pa $HOME/.aumixrc
+(depreciated)
.El
- .Sh EXAMPLE
+ .Sh EXAMPLES
The command
-@@ -179,7 +183,10 @@
+@@ -189,7 +193,10 @@
show a description of the functions of keys
.It L or l
load settings from
falling back to
.Pa /etc/aumixrc
.It M or m
-@@ -247,8 +254,11 @@
+@@ -264,8 +271,11 @@
Saved settings for the mixer are kept in the
.Pa /etc/aumixrc
and
+but can be kept anywhere if specified explicitly.
Color schemes are normally kept in the directory given
by
- .Ev DATADIRNAME
---- aumix-2.1/po/aumix.pot Mon Jan 31 23:30:12 2000
-+++ aumix-2.1.pius/po/aumix.pot Tue Feb 8 02:09:41 2000
-@@ -175,7 +175,7 @@
- "other options:\n"
+ .Ev DATADIR
+diff -Nru aumix-2.6.1/po/de.po aumix-2.6.1.new/po/de.po
+--- aumix-2.6.1/po/de.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/de.po Tue Jun 27 23:15:28 2000
+@@ -206,12 +206,12 @@
+ msgid ""
" d: adjust a device besides /dev/mixer\n"
" f: specify file for saving and loading settings (defaults to\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
- " h: this helpful message\n"
- msgstr ""
---- aumix-2.1/po/de.po Sun Nov 28 07:35:18 1999
-+++ aumix-2.1.pius/po/de.po Tue Feb 8 02:09:41 2000
-@@ -81,7 +81,7 @@
- "other options:\n"
- " d: adjust a device besides /dev/mixer\n"
- " f: specify file for saving and loading settings (defaults to\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: this helpful message\n"
msgstr ""
-@@ -99,7 +99,7 @@
- "Weitere Optionen:\n"
" d: Anderes Gerät als /dev/mixer benutzen\n"
- " f: spezifizieren Sie Datei für Einsparung- und Ladeneinstellungen\n"
--" (Rückstellungen zum ~ /.aumixrc or /etc/aumixrc)\n"
-+" (Rückstellungen zum $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
+ " f: Spezifizieren Sie die Datei zum Speichern und Laden von Einstellungen\n"
+-" (Standard sind ~/.aumixrc oder /etc/aumixrc)\n"
++" (Standard sind $CONFIG_DIR/aumixrc oder /etc/aumixrc) or /etc/aumixrc)\n"
" h: Diese nützlichen Informationen\n"
- #: src/common.c:567
---- aumix-2.1/po/es.po Mon Dec 6 16:41:47 1999
-+++ aumix-2.1.pius/po/es.po Tue Feb 8 02:09:41 2000
-@@ -81,7 +81,7 @@
- "other options:\n"
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/po/es.po aumix-2.6.1.new/po/es.po
+--- aumix-2.6.1/po/es.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/es.po Tue Jun 27 23:14:48 2000
+@@ -206,12 +206,12 @@
+ msgid ""
" d: adjust a device besides /dev/mixer\n"
" f: specify file for saving and loading settings (defaults to\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: this helpful message\n"
msgstr ""
-@@ -99,7 +99,7 @@
- "Otras opciones:\n"
" d: ajustar dispositivos además de /dev/mixer\n"
" f: indicar el fichero para guardar y cargar las preferencias (por\n"
-" defecto es ~/.aumixrc o /etc/aumixrc\n"
-+" defecto es $CONFIG_DIR/aumixrc, ~/.aumixrc o /etc/aumixrc\n"
- " C: indicar el esquema de color\n"
++" defecto es $CONFIG_DIR/aumixrc o /etc/aumixrc\n"
" h: este mensaje de ayuda\n"
---- aumix-2.1/po/gl.po Mon Dec 6 16:41:47 1999
-+++ aumix-2.1.pius/po/gl.po Tue Feb 8 02:09:41 2000
-@@ -89,7 +89,7 @@
- "other options:\n"
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/po/fr.po aumix-2.6.1.new/po/fr.po
+--- aumix-2.6.1/po/fr.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/fr.po Tue Jun 27 23:15:18 2000
+@@ -206,12 +206,12 @@
+ msgid ""
" d: adjust a device besides /dev/mixer\n"
" f: specify file for saving and loading settings (defaults to\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
+ " h: this helpful message\n"
+ msgstr ""
+ " d: ajuster un périphérique autre que /dev/mixer\n"
+ " f: spécifier le fichier de sauvegarde/chargement des paramètres\n"
+-" (par défaut il s'agit de ~/.aumixrc ou /etc/aumixrc)\n"
++" (par défaut il s'agit de $CONFIG_DIR/aumixrc ou /etc/aumixrc)\n"
+ " h: ce message d'aide\n"
+
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/po/gl.po aumix-2.6.1.new/po/gl.po
+--- aumix-2.6.1/po/gl.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/gl.po Tue Jun 27 23:14:38 2000
+@@ -214,12 +214,12 @@
+ msgid ""
+ " d: adjust a device besides /dev/mixer\n"
+ " f: specify file for saving and loading settings (defaults to\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: this helpful message\n"
msgstr ""
-@@ -107,7 +107,7 @@
- "outras opcións:\n"
" d: axustar outro dispositivo que non sexa /dev/mixer\n"
" f: especificar ficheiro para gardar e cargar parámetros (por omisión é\n"
-" ~/.aumixrc ou /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~/.aumixrc ou /etc/aumixrc)\n"
- " C: especifica-lo esquema de cor\n"
++" $CONFIG_DIR/aumixrc ou /etc/aumixrc)\n"
" h: amosar esta mensaxe de axuda\n"
---- aumix-2.1/po/pl.po Tue Feb 8 02:15:54 2000
-+++ aumix-2.1.pius/po/pl.po Tue Feb 8 02:09:41 2000
-@@ -181,7 +181,7 @@
- "other options:\n"
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/po/pl.po aumix-2.6.1.new/po/pl.po
+--- aumix-2.6.1/po/pl.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/pl.po Tue Jun 27 23:16:16 2000
+@@ -210,12 +210,12 @@
+ msgid ""
" d: adjust a device besides /dev/mixer\n"
" f: specify file for saving and loading settings (defaults to\n"
-" ~/.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~/.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: this helpful message\n"
msgstr ""
-@@ -199,7 +199,7 @@
- "inne opcje:\n"
" d: dostosowuje urz±dzenie inne ni¿ /dev/mixer\n"
" f: okre¶la plik do zapisywania i ³adowania ustawieñ (domy¶lnie jest to\n"
-" ~/.aumixrc lub /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~/.aumixrc lub /etc/aumixrc)\n"
- " C: okre¶la plik zawieraj±cy schemat u¿ycia kolorów\n"
++" $CONFIG_DIR/aumixrc lub /etc/aumixrc)\n"
" h: ta pomocna informacja\n"
---- aumix-2.1/po/pt_BR.po Sun Nov 28 07:35:18 1999
-+++ aumix-2.1.pius/po/pt_BR.po Tue Feb 8 02:09:41 2000
-@@ -84,7 +84,7 @@
- "other options:\n"
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/po/pt_BR.po aumix-2.6.1.new/po/pt_BR.po
+--- aumix-2.6.1/po/pt_BR.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/pt_BR.po Tue Jun 27 23:14:27 2000
+@@ -212,12 +212,12 @@
+ msgid ""
" d: adjust a device besides /dev/mixer\n"
" f: specify file for saving and loading settings (defaults to\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: this helpful message\n"
msgstr ""
-@@ -102,7 +102,7 @@
- "outras opções:\n"
" d: usar outro dispositivo que não o /dev/mixer\n"
" f: SPECIFY FILE FOR SAVING AND LOADING SETTINGS (DEFAULTS TO\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: SPECIFY COLOR SCHEME\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: esta mensagem de ajuda\n"
---- aumix-2.1/po/ru.po Mon Dec 20 02:13:11 1999
-+++ aumix-2.1.pius/po/ru.po Tue Feb 8 02:09:41 2000
-@@ -188,7 +188,7 @@
- "other options:\n"
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/po/ru.po aumix-2.6.1.new/po/ru.po
+--- aumix-2.6.1/po/ru.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/ru.po Tue Jun 27 23:16:07 2000
+@@ -210,12 +210,12 @@
+ msgid ""
" d: adjust a device besides /dev/mixer\n"
" f: specify file for saving and loading settings (defaults to\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: this helpful message\n"
msgstr ""
-@@ -207,7 +207,7 @@
- "äÒÕÇÉÅ ÏÐÃÉÉ:\n"
" d: ÒÅÇÕÌÉÒÏ×ÁÔØ ÕÓÔÒÏÊÓÔ×Á ËÒÏÍÅ /dev/mixer\n"
" f: ÕËÁÚÁÎÉÅ ÉÍÅÎÉ ÆÁÊÌÁ ÄÌÑ ÈÒÁÎÅÎÉÑ ÕÓÔÁÎÏ×ÏË (ÐÏ ÕÍÏÌÞÁÎÉÀ\n"
--" ~ /.aumixrc ÉÌÉ /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc ÉÌÉ /etc/aumixrc)\n"
- " C: ×ÙÂÏÒ Ã×ÅÔÏ×ÏÊ ÓÈÅÍÙ\n"
+-" ~/.aumixrc ÉÌÉ /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc ÉÌÉ /etc/aumixrc)\n"
" h: ÜÔÁ ÐÏÍÏÝØ\n"
---- aumix-2.1/po/uk.po Sun Nov 28 07:35:18 1999
-+++ aumix-2.1.pius/po/uk.po Tue Feb 8 02:09:41 2000
-@@ -82,7 +82,7 @@
- "other options:\n"
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/po/uk.po aumix-2.6.1.new/po/uk.po
+--- aumix-2.6.1/po/uk.po Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/po/uk.po Tue Jun 27 23:14:13 2000
+@@ -212,12 +212,12 @@
+ msgid ""
" d: adjust a device besides /dev/mixer\n"
" f: specify file for saving and loading settings (defaults to\n"
--" ~ /.aumixrc or /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc or /etc/aumixrc)\n"
- " C: specify color scheme\n"
+-" ~/.aumixrc or /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc or /etc/aumixrc)\n"
" h: this helpful message\n"
msgstr ""
-@@ -101,7 +101,7 @@
- "¶ÎÛ¦ ÏÐæ§:\n"
" d: ÒÅÇÕÌÀ×ÁÔÉ ÐÒÉÓÔÒϧ ÏËÒ¦Í /dev/mixer\n"
" f: ×ËÁÚÁÎÎÑ ¦ÍÅΦ ÆÁÊÌÕ ÄÌÑ ÚÂÅÒ¦ÇÁÎÎÑ Ò¦×Î¦× (ÚÁ ÚÁÍÏ×ÞÁÎÎÑÍ\n"
--" ~ /.aumixrc ÞÉ /etc/aumixrc)\n"
-+" $CONFIG_DIR/aumixrc, ~ /.aumixrc ÞÉ /etc/aumixrc)\n"
- " C: SPECIFY COLOR SCHEME\n"
+-" ~/.aumixrc ÞÉ /etc/aumixrc)\n"
++" $CONFIG_DIR/aumixrc ÞÉ /etc/aumixrc)\n"
" h: ÃÑ ÄÏÐÏÍÏÇÁ\n"
---- aumix-2.1/src/Makefile.am Sat Dec 25 17:53:54 1999
-+++ aumix-2.1.pius/src/Makefile.am Tue Feb 8 02:09:41 2000
-@@ -1,8 +1,8 @@
- bin_PROGRAMS = aumix
+ #: src/common.c:689
+diff -Nru aumix-2.6.1/src/Makefile.am aumix-2.6.1.new/src/Makefile.am
+--- aumix-2.6.1/src/Makefile.am Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/src/Makefile.am Wed Jun 28 00:12:13 2000
+@@ -2,8 +2,8 @@
+ if CURSES
bin_SCRIPTS = xaumix
+ endif
-aumix_SOURCES = common.c curses.c dummy.c gpm-xterm.c gtk.c interactive.c \
- mouse.c common.h curses.h gpm-xterm.h gtk.h interactive.h \
-- mouse.h
-+aumix_SOURCES = userdir.c common.c curses.c dummy.c gpm-xterm.c gtk.c \
-+ interactive.c mouse.c userdir.h common.h curses.h gpm-xterm.h \
-+ gtk.h interactive.h mouse.h
++aumix_SOURCES = userdir.c common.c curses.c dummy.c gpm-xterm.c gtk.c interactive.c \
++ mouse.c userdir.h common.h curses.h gpm-xterm.h gtk.h interactive.h \
+ mouse.h play.xpm record.xpm
localedir = $(datadir)/locale
INCLUDES = -I../intl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
- CFLAGS = @CFLAGS@ @GLIB_CFLAGS@ @GTK_CFLAGS@
---- aumix-2.1/src/Makefile.in Mon Jan 31 23:19:53 2000
-+++ aumix-2.1.pius/src/Makefile.in Tue Feb 8 02:09:41 2000
-@@ -84,7 +84,7 @@
-
- bin_PROGRAMS = aumix
- bin_SCRIPTS = xaumix
--aumix_SOURCES = common.c curses.c dummy.c gpm-xterm.c gtk.c interactive.c mouse.c common.h curses.h gpm-xterm.h gtk.h interactive.h mouse.h
-+aumix_SOURCES = userdir.c common.c curses.c dummy.c gpm-xterm.c gtk.c interactive.c mouse.c userdir.h common.h curses.h gpm-xterm.h gtk.h interactive.h mouse.h
-
- localedir = $(datadir)/locale
- INCLUDES = -I../intl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
-@@ -99,7 +99,7 @@
+diff -Nru aumix-2.6.1/src/Makefile.in aumix-2.6.1.new/src/Makefile.in
+--- aumix-2.6.1/src/Makefile.in Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/src/Makefile.in Tue Jun 27 23:11:28 2000
+@@ -100,7 +100,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
interactive.o mouse.o
aumix_LDADD = $(LDADD)
aumix_DEPENDENCIES =
---- aumix-2.1/src/common.c Mon Jan 31 23:30:12 2000
-+++ aumix-2.1.pius/src/common.c Tue Feb 8 02:14:43 2000
-@@ -24,6 +24,7 @@
+diff -Nru aumix-2.6.1/src/common.c aumix-2.6.1.new/src/common.c
+--- aumix-2.6.1/src/common.c Tue Jun 27 23:11:47 2000
++++ aumix-2.6.1.new/src/common.c Wed Jun 28 00:10:45 2000
+@@ -26,6 +26,7 @@
#include "gtk.h"
- #endif
+ #endif /* HAVE_GTK */
#include "interactive.h"
+#include "userdir.h"
- void ExitIfError(int error);
- int InitializeMixer(char *device_file);
-@@ -536,7 +537,8 @@
+ FILE *OpenDefaultFile(char *mode);
+ FILE *setfile;
+@@ -556,7 +557,8 @@
{
/* Open the settings file for reading or writing.
- Try first ${HOME}/.AUMIXRC, then AUMIXRC_PATH/AUMIXRC;
-+ Try first ${CONFIG_DIR}/AUMIXRC, then ${HOME}/.AUMIXRC
-+ and eventually AUMIXRC_PATH/AUMIXRC;
++ Try first ${HOME}/.AUMIXRC, then then ${HOME}/.AUMIXRC
++ and eventualy AUMIXRC_PATH/AUMIXRC;
become an error generator if neither can be opened.
Input:
-@@ -551,19 +553,25 @@
+@@ -571,6 +573,8 @@
FILE *setfile;
char *home;
char filename[FILENAME_MAX];
-+ struct cfv etcfile;
-+
++ struct cfv etcfile;
++
if (save_filename == NULL) {
-- home = getenv("HOME");
-- sprintf(filename, "%s/.%s", home, AUMIXRC);
-- setfile = fopen(filename, mode);
-- if (setfile == NULL) {
-- sprintf(filename, "%s/%s", AUMIXRC_PATH, AUMIXRC);
-- setfile = fopen(filename, mode);
-- }
-- if (setfile == NULL) {
-- return NULL;
-- }
-+ etcfile.variable = "CONFIG_DIR";
-+ etcfile.home_dir = NULL;
-+ etcfile.home_scd = NULL;
-+ etcfile.subname = AUMIXRC;
-+ etcfile.prefix = ".";
-+ etcfile.suffix = "";
-+ etcfile.mode = M_REGULAR_FILE;
+ home = getenv("HOME");
+ if ((strlen(home) + strlen(AUMIXRC)) < PATH_MAX) {
+@@ -585,6 +589,19 @@
+ }
+ if (setfile == NULL) {
+ return NULL;
++ }
++ etcfile.variable = "CONFIG_DIR";
++ etcfile.home_dir = NULL;
++ etcfile.home_scd = NULL;
++ etcfile.subname = AUMIXRC;
++ etcfile.prefix = ".";
++ etcfile.suffix = "";
++ etcfile.mode = M_REGULAR_FILE;
+
-+ setfile = fopencfv(&etcfile, mode);
-+
-+ if (setfile == NULL) {
-+ sprintf(filename, "%s/%s", AUMIXRC_PATH, AUMIXRC);
-+ setfile = fopen(filename, mode);
-+ }
++ setfile = fopencfv(&etcfile, mode);
++ if (setfile == NULL) {
++ sprintf(filename, "%s/%s", AUMIXRC_PATH, AUMIXRC);
++ setfile = fopen(filename, mode);
+ }
} else
-- setfile = fopen(save_filename, mode);
-+ setfile = fopen(save_filename, mode);
- return setfile;
- }
-
-@@ -649,7 +657,7 @@
- other options:\n\
- d: adjust a device besides /dev/mixer\n\
- f: specify file for saving and loading settings (defaults to\n\
-- ~ /.aumixrc or /etc/aumixrc)\n\
-+ $CONFIG_DIR/aumixrc, ~/.aumixrc or /etc/aumixrc)\n\
- C: specify color scheme\n\
- h: this helpful message\n"));
- #ifdef HAVE_CURSES
---- aumix-2.1/src/userdir.c Thu Jan 1 01:00:00 1970
-+++ aumix-2.1.pius/src/userdir.c Sat Feb 5 21:19:17 2000
+ setfile = fopen(save_filename, mode);
+diff -Nru aumix-2.6.1/src/userdir.c aumix-2.6.1.new/src/userdir.c
+--- aumix-2.6.1/src/userdir.c Thu Jan 1 01:00:00 1970
++++ aumix-2.6.1.new/src/userdir.c Tue Jun 27 23:11:28 2000
@@ -0,0 +1,167 @@
+// $Id$
+#include "userdir.h"
+
+/******************************************************************************/
\ No newline at end of file
---- aumix-2.1/src/userdir.h Thu Jan 1 01:00:00 1970
-+++ aumix-2.1.pius/src/userdir.h Sat Feb 5 21:19:17 2000
+diff -Nru aumix-2.6.1/src/userdir.h aumix-2.6.1.new/src/userdir.h
+--- aumix-2.6.1/src/userdir.h Thu Jan 1 01:00:00 1970
++++ aumix-2.6.1.new/src/userdir.h Tue Jun 27 23:11:28 2000
@@ -0,0 +1,56 @@
+// $Id$
+#ifndef USERDIR__H