2002-09-22  Junichi Uekawa  <dancer@debian.org>

	* configure.ac: 0.22.0
	some new features are being added. Bump up the version.
	start debugging those features :)

	* dsh.1: document that multiple specification of 
	same machine will not be valued, and be merged into one.

	* parameter.c (machinelist_lladd): implement using llmatch.
	This fixes Debian BUG
	Bug#161845: dsh: Weak parsing of /etc/dsh/dsh.conf, and of options 
	Philippe Troin <phil@fifi.org>
	Duplicate machine entries are ignored.
	
	* linkedlist.h: add definition of llmatch

	* linkedlist.c (llmatch): string-matching routine.

	* parameter.c 
	(split_machines_list_and_add_machines, read_machinenetgroup) 
	(read_machinelist): use machinelist_lladd instead of lladd
	(machinelist_lladd): new function.

2002-09-21  Junichi Uekawa  <dancer@debian.org>

	* dsh.c (execute_rsh_single): add notes on when NOT to fork.

2002-09-20  Junichi Uekawa  <dancer@debian.org>

	* parameter.h (do_shell): move over a function declaration to 
	parameter.h so that checks will exist, from parameter.c

	* dsh.1: document the new feature, the "," delimiter for -m
	option.

	* parameter.c (split_machines_list_and_add_machines): new function,
	allow specifying of -m host1,host2 kind of parameter.
	(parse_options): use the split_machines_list_and_add_machines

2002-09-19  Junichi Uekawa  <dancer@debian.org>

	* configure.ac: 0.21.3
	The main problem seems to have been addressed. Yay!

	* parameter.c (stripwhitespace): change stripn to stripwhitespace
	and strip whitespace while we are at it.
	(read_machinelist): strip whitespace when reading config file.
	(read_machinelist): properly ignore blank lines.
	(stripwhitespace): fix typo.
	(stripwhitespace): fix reverse-logic.
	(stripwhitespace): fix typo.

	* dsh.c (run_input_forking_child_processes_process): trying to debug the thing now.
	(run_input_forking_child_processes_process): I made a mistake.
	0 is a end-of-file for read(). Treat it like that, and it should be all happy now.
	(run_input_forking_child_processes_process): close the output fd in the parent process.

2002-09-18  Junichi Uekawa  <dancer@debian.org>

	* dsh.c (main): add error checking for bindtextdomain, and textdomain calls.
	(main): some proper handling.

	* configure.ac: 0.21.2 
	with even more minor cosmetic bugfixes, which does not address the main problem.

	* dsh.c (run_input_forking_child_processes_process): call open_devnull for default case.

	* parameter.h (open_devnull): define

	* parameter.c (open_devnull): make this symbol public

	* configure.ac: 0.21.1

	* dsh.c (run_input_forking_child_processes_process): exit from process, not just break from the case 
	statement!
	Make distributed copy work.

2002-09-16  Junichi Uekawa  <dancer@debian.org>

	* configure.ac: 0.21.0

	* dsh.c (run_input_forking_child_processes_process): properly close fd when process terminates.

	* linkedlist.c: add include for parameter.h

	* dsh.1: document -b.

	* parameter.c (print_help): document -i and -b
	(parse_options): add -b handling.

	* parameter.h: add declaration for malloc_with_error

	* parameter.c (malloc_with_error): make the static function public.
	Remove the same function from linkedlist.c

	* dsh.1: document --duplicate-input

	* parameter.c (parse_options): add -i --duplicate-input option.

	* dsh.c: define buffer_size; default is 1024.

	* parameter.h: define buffer_size;

	* dsh.c (run_input_forking_child_processes_process): implement the writing out.
	(do_shell): call the run_input_forking_child_processes_process.

	* parameter.c (parse_options), and other places: change var name to pipe_option.

	* parameter.h: change show_machine_names to pipe_option

	* dsh.c (main): remove call to open_devnull
	change name of show_machine_names to pipe_option.

	* parameter.c (open_devnull): move from dsh.c to parameter.c
	(parse_options): sanity check.
	(parse_options): call open_devnull.

	* dsh.c (do_execute_with_optional_pipe): use PIPE_OPTION_OUTPUT instead of hardcoding
	(execute_rsh_single): add partial PIPE_OPTION_INPUT handling routine.

	* parameter.c (parse_options): use PIPE_OPTION_OUTPUT instead of hardcoding 1.

	* dsh.h (PIPE_OPTION_INPUT): add constant for options..

	* debian/control (Description): add upstream URL in description line.

2002-09-14  Junichi Uekawa  <dancer@debian.org>

	* dsh.c (do_echoing_back_process): change the function name, to clarify that this is a process..
	(do_shell): add error message
	(do_shell): return value
	(execute_rsh): return value
	(execute_rsh_multiple): return value
	(execute_rsh_single): return value

	* configure.ac: 0.20.4

	* parameter.c (parse_options): add notes on what is problematic about it.

	* dsh.c (main): note the plan; when show_machine_names &2 == 1,
	it should read input and duplicate the value to all other 
	processes.
	(execute_rsh_multiple): simplify code with "-n 4" to "-n4" kind of
	parameter passing.
	(do_execute_with_optional_pipe): add the hook to do things properly
	later.
	(fork_and_pipe_echoing_routine): return -1 instead of exit(EXIT_FAILURE)
	(do_execute_with_optional_pipe): changed implementation to use
	fork_and_pipe_echoing_routine.
	(do_execute_with_optional_pipe): fix typo
	(execute_rsh_multiple): pass -r option to other end when doing -nX. !!!
	It was missing from previous releases.

	* parameter.c (parse_options): change show_machine_names = 1 to
	|= 1.
	(load_configfile): change logic to do |= 1

	* dsh.c (do_execute_with_optional_pipe): unify the code path
	for pipe option, and other.

	* linkedlist.c (llexec): document functions.

	* dsh.c: some updates  to documentation

2002-09-11  Junichi Uekawa  <dancer@debian.org>

	* dsh.c: include locale.h

	* autogen.sh: call aclocal -I m4

	* configure.ac: 0.20.3

	* parameter.c (parse_options): update and mark for translation

	* Makefile.am (dsh_CFLAGS): add localedir to defines.
	(SUBDIRS): add po

	* dsh.c: include gettext.h
	(do_execute_with_optional_pipe): gettextize string.
	(main): add setlocale, bindtextdomain, textdomain.

	* Makefile.am (dsh_SOURCES): add gettext.h

	* gettext.h: add from gettext.

	* configure.ac: AM_GNU_GETTEXT([external]);
	(localedir): add localedir definition, ALL_LINGUAS definition, and 
	gettext function checking.

2002-09-11  gettextize  <bug-gnu-gettext@gnu.org>

	* Makefile.am (SUBDIRS): New variable.
	(ACLOCAL_AMFLAGS): New variable.
	(EXTRA_DIST): Add config.rpath.
	* configure.ac (AC_OUTPUT): Add po/Makefile.in,

2002-09-06  Junichi Uekawa  <dancer@debian.org>

	* configure.ac: 0.20.2

2002-08-14  Junichi Uekawa  <dancer@debian.org>

	* Makefile.am: define DSH_COMMANDLINE to be bindir/PACKAGE

	* dsh.c (execute_rsh_multiple): use DSH_COMMANDLINE instead of PACKAGE.

2002-07-24  Junichi Uekawa  <dancer@debian.org>

	* configure.ac: 0.20.1

	* Makefile.am: modify dist targets updated from dmachinemon sources.

2002-06-25  Junichi Uekawa  <dancer@debian.org>

	* configure.ac: update for autoconf1.5, change to ac. 
	probably requires automake 1.6
	version 0.0.19.8
	change to version 0.20.0

2002-06-23  Junichi Uekawa  <dancer@debian.org>

	* dsh.h: fix typo.
	* configure.in: look for asprintf
	version 0.0.19.7
	
2002-06-19  Junichi Uekawa  <dancer@debian.org>

	* Makefile.am (man_MANS): remove dsh_LDFLAGS, it's set in configure.

2002-06-15  Junichi Uekawa  <dancer@debian.org>

	* configure.in: emit error if dshconfig is not found.
	version 0.0.19.6

2002-06-14  Junichi Uekawa  <dancer@debian.org>

	* configure.in: 0.0.19.5

	* parameter.c (print_version): update copyright information.

	* dsh.h: add prototype for asprintf.

	* configure.in: 0.0.19.4

	* debian/rules (configure-stamp): fix up configure script to 
	put files in /etc/dsh, and mandir in /usr/share/man

	* Makefile.am (EXTRA_DIST): add autogen.sh to dist target
	(EXTRA_DIST): add sysconf_DATA

	* parameter.c (parse_options): use DSHCONFDIR instead of hardcoding /etc/dsh

	* Makefile.am (dsh_CFLAGS): add -DDSHCONFDIR to dsh_CFLAGS

	* AUTHORS: updated authors list to add notes on solaris port 

	* Makefile.am (EXTRA_DIST): add dsh.conf to EXTRA_DIST target.

	* dsh.c: 
	* linkedlist.c: 
	* parameter.c: reorder includes to get dsh.h earlier, and remove reference to config.h

	* dsh.h (getline): add declaration for getline function, if it doesn't exist.
	include config.h here.

	* dsh.c: remove unnecessary getopt.
	(getline): remove the static declaration.

	* configure.in: 0.0.19.3

	* parameter.c, dsh.c, linkedlist.c: revert use of <config.h> to use "config.h".
	someone else is providing config.h somewhere, breaking my build.

	* parameter.c: add ifdef for HAVE_GETOPT_H, and getopt_long
	Thanks to Petter Reinholdtsen <pere@hungry.com>

	* dsh.c (asprintf): add asprintf definition.
	Thanks to Petter Reinholdtsen <pere@hungry.com>
	(getline): copy getline definition from libdshconfig.

	* configure.in: add AC_CHECK_HEDAERS/FUNCS for getopt
	Thanks to Petter Reinholdtsen <pere@hungry.com>

2002-06-13  Junichi Uekawa  <dancer@debian.org>

	* configure.in: 0.0.19.2

	* debian/rules (binary-arch): removed the installman specifics, because 
	the upstream makefile will handle it.

	* Makefile.am (man_MANS): add dsh.1 to man_MANS, and EXTRA_DIST
	Thanks to Petter Reinholdtsen <pere@hungry.com>

	* configure.in: check libdshconfig for open_dshconfig

	* linkedlist.c, parameter.c, dsh.c: #include <config.h> instead of "config.h"

2002-06-12  Junichi Uekawa  <dancer@debian.org>

	* configure.in: version 0.0.19.1

	* autogen.sh: add --force

	* dsh.c (do_echoing_back): add a missing free for buf,
	Thanks to Petter Reinholdtsen <pere@hungry.com>

	* configure.in: version 0.0.19.0

	* Makefile.am: update prinstine-source generator/Debian 

2002-06-01  Junichi Uekawa  <dancer@debian.org>


	* dsh.c (do_execute_with_optional_pipe): use PACKAGE instead of PROGRAM_NAME
	(do_execute_with_optional_pipe): 

	* parameter.c (read_machinelist): 
	* parameter.c (load_configfile): ditto

	* configure.in: add AM_MAINTAINER_MODE

	* dsh.h (DSH_CONF): remove PROGRAM_NAME

2002-05-31  Junichi Uekawa  <dancer@debian.org>

	* configure.in: change version number to 0.0.19pre

	* Makefile.am (../@PACKAGE@_@VERSION@.orig.tar.gz): fix the target not to overwrite pristine upstream tarball.

	* configure.in: fix typo in package name.

	* Makefile.am (dsh_SOURCES): fix Make rule to allow distcheck to succeed.

	* debian/changelog: make it a non-native package.

	* Makefile.am, configure.in, autogen.sh: added

	* debian/rules (configure-stamp): remove reference to dshversion.h

	* parameter.c: use VERSION instead of DSH_VERSION

2002-05-26  Junichi Uekawa  <dancer@debian.org>

	* TODO: update TODO, with notes on bug.

2002-05-16  Junichi Uekawa  <dancer@debian.org>

	* parameter.c (read_machinelist): minor cosmetic fix.
	if alternatelistfile is NULL, do not try to display it in error 
	message.

2002-04-20  Junichi Uekawa  <dancer@debian.org>

	* debian/control (Build-Depends): remove libtool dependency.

	* Makefile (install): updated to remove libtool reference.

	* debian/control (Build-Depends): add build-depends on libtool.

	* Makefile: removed libdshconfig trace

	* debian/rules (clean): remove libdshconfig trace.

	* move libdshconfig from dsh source to separate package

2002-03-31  Junichi Uekawa  <dancer@debian.org>

	* libdshconfig.c (free_dshconfig): free the title and data for each item, fix memleak.

2002-03-30  Junichi Uekawa  <dancer@debian.org>

	* libdshconfig.h: added dshconfig_searchdata

	* libdshconfig.c (dshconfig_searchdata): added

2002-03-28  Junichi Uekawa  <dancer@debian.org>

	* libdshconfig.h: added declaration for dshconfig_splitline.

	* libdshconfig.c (dshconfig_splitline): created a new function, so that this piece of code can be re-used.
	(read_oneline): changed to use dshconfig_splitline instead
	(read_oneline): fixing things, so that dancer acpi can use this 
	parser routine instead.

2002-03-18  Junichi Uekawa  <dancer@debian.org>

	* debian/rules: install the libs and other things in the right package

	* libdshconfig.h: added some ifndefs.

	* Makefile (install): added include

	* debian/rules (binary-arch): added dh_makeshlibs

	* Makefile (install): make install target to use libtool
	(install): fix minor detail in install target.

	* libdshconfig.c (read_oneline): fix it so that # at the start of line won't cause segv.

	* dsh.conf: modified to make it look different and for debugging dsh.

	* parameter.c (load_configfile): rewrite the config reader using libdshconfig.

	* test-dshconfig.c (main): comment.

	* libdshconfig.c (free_dshconfig): add error check.

	* libdshconfig.h: declare free_dshconfig

	* libdshconfig.c (free_dshconfig): add new function. Probably required.

	* Makefile (install): fixed makefile
	(libdshconfig.la): making a shared lib.

	* libdshconfig.c (read_oneline): fixing many bugs, to make it work. Yeah, it never compiled.
	(read_oneline): fix end bug.

	* libdshconfig.h: add declaration for open_dshconfig

	* test-dshconfig.c (main): create a new program to test the function

2002-02-27  Junichi Uekawa  <dancer@debian.org>

	* debian/changelog: Mark for release

2002-02-05  Junichi Uekawa  <dancer@debian.org>

	* dsh.c: some beautification
	added header files "sys/stat.h" "fnctl.h" declaration
	to get open() to work.

	* libdshconfig.c (open_dshconfig): making a function implementation to hopefully work.

	* debian/changelog: updated the changelog with the bugfixer.

	* dsh.c (open_devnull): created a new function.
	(main): uses /dev/null for input as default.

2002-02-03  Junichi Uekawa  <dancer@debian.org>

	* libdshconfig.c (read_oneline): some minor playing around.
	Aiming to make a basis for config reader usable in dsh, and 
	also another project I am planning to work on.
	
	* libdshconfig.h: created
	(dshconfig): created
	(dshconfig_internal): created

	* libdshconfig.c: creating a new file.

2002-01-26  Junichi Uekawa  <dancer@debian.org>

	* dsh.c (main): error check asprintf.

2002-01-25  Junichi Uekawa  <dancer@debian.org>

	* ChangeLog: resume using the ChangeLog file.

	* TODO: created as a memo to document some wishlist.

2001-05-14  Junichi Uekawa  <dancer@netfort.gr.jp>

	* dsh.1: added documentation for homedir configs.

	* dsh.c (parse_options): added support for machines config.
	(read_machinelist): The machines list support.
	(parse_options): Configs in homedir too.

2001-05-13  Junichi Uekawa  <dancer@netfort.gr.jp>

	* dsh.1: Created a manpage

	* Makefile: Copied from other project. 

	* dsh.c: Created / started, by
	dancer@{debian.org,netfort.gr.jp,mikilab.doshisha.ac.jp} 

