changeset 4225:fa4dfbc33ce5

[project @ 2002-12-18 03:07:48 by jwe]
author jwe
date Wed, 18 Dec 2002 03:07:48 +0000
parents 0179e6309248
children eafca8134ab6
files scripts/ChangeLog scripts/audio/Makefile.in scripts/control/base/Makefile.in scripts/control/hinf/Makefile.in scripts/control/obsolete/Makefile.in scripts/control/system/Makefile.in scripts/control/util/Makefile.in scripts/deprecated/Makefile.in scripts/elfun/Makefile.in scripts/finance/Makefile.in scripts/general/Makefile.in scripts/image/Makefile.in scripts/io/Makefile.in scripts/linear-algebra/Makefile.in scripts/miscellaneous/Makefile.in scripts/plot/Makefile.in scripts/plot/close.m scripts/polynomial/Makefile.in scripts/quaternion/Makefile.in scripts/set/Makefile.in scripts/signal/Makefile.in scripts/specfun/Makefile.in scripts/special-matrix/Makefile.in scripts/statistics/base/Makefile.in scripts/statistics/distributions/Makefile.in scripts/statistics/models/Makefile.in scripts/statistics/tests/Makefile.in scripts/strings/Makefile.in scripts/time/Makefile.in
diffstat 29 files changed, 144 insertions(+), 216 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/ChangeLog	Wed Dec 18 03:07:48 2002 +0000
@@ -1,3 +1,23 @@
+2002-12-17  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* audio/Makefile.in, control/base/Makefile.in,
+	control/hinf/Makefile.in, control/obsolete/Makefile.in,
+	control/system/Makefile.in, elfun/Makefile.in,
+	finance/Makefile.in, general/Makefile.in, image/Makefile.in,
+	io/Makefile.in, linear-algebra/Makefile.in,
+	miscellaneous/Makefile.in, polynomial/Makefile.in,
+	quaternion/Makefile.in, set/Makefile.in, signal/Makefile.in,
+	specfun/Makefile.in, special-matrix/Makefile.in,
+	statistics/base/Makefile.in, statistics/distributions/Makefile.in,
+	statistics/models/Makefile.in, statistics/tests/Makefile.in,
+	strings/Makefile.in, time/Makefile.in, plot/Makefile.in,
+	deprecated/Makefile.in: Use new do-script-install and
+	do-script-uninstall macros.
+
+	* mkpkgadd: New script.
+
+	* plot/close.m: New file.
+
 2002-11-15  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* image/image.m: Use -raw option for xv.
--- a/scripts/audio/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/audio/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/control/base/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/control/base/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/control/hinf/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/control/hinf/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/control/obsolete/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/control/obsolete/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/control/system/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/control/system/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/control/util/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/control/util/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/deprecated/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/deprecated/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/elfun/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/elfun/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/finance/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/finance/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/general/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/general/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/image/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/image/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -37,11 +37,7 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 	$(top_srcdir)/mkinstalldirs $(imagedir)
 	for f in $(IMAGE_FILES_NO_DIR); do \
 	  rm -f $(imagedir)/$$f; \
@@ -51,9 +47,7 @@
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 	for f in $(IMAGE_FILES_NO_DIR); \
 	  do rm -f $(imagedir)/$$f; \
 	done
--- a/scripts/io/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/io/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/linear-algebra/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/linear-algebra/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/miscellaneous/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/miscellaneous/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/plot/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/plot/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/plot/close.m	Wed Dec 18 03:07:48 2002 +0000
@@ -0,0 +1,70 @@
+## Copyright (C) 2002 John W. Eaton
+##
+## This file is part of Octave.
+##
+## Octave is free software; you can redistribute it and/or modify it
+## under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+##
+## Octave is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with Octave; see the file COPYING.  If not, write to the Free
+## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+
+## -*- texinfo -*-
+## @deftypefn {Command} {} close
+## @deftypefnx {Command} {} close all
+## Close the plot window(s).
+## @end deftypefn
+
+## Author: jwe
+
+## mark_as_command: close
+
+function retval = close (arg1, arg2)
+
+  static warned_all = false;
+  static warned_name = false;
+  static warned_handle = false;
+
+  if (nargin == 0)
+    if (! warned_all)
+      warned_all = true;
+      warning ("close: unable to close only current plot window");
+    endif
+    closeplot;
+  elseif (nargin == 1)
+    if (isstr (arg1))
+      if (strcmp (arg1, "all"))
+	closeplot;
+      else
+	if (! warned_name)
+	  warned_name = true;
+	  warning ("close: unable to close plot windows by name");
+	endif
+      endif
+    else
+      if (! warned_handle)
+	warned_handle = true;
+	warning ("close: unable to close plot windows by handle");
+      endif
+    endif
+  elseif (nargin == 2
+	  && isstr (arg1) && strcmp (arg1, "all")
+	  && isstr (arg2) && strcmp (arg2, "hidden"))
+    closeplot;
+  else
+    usage ("close [all]");
+  endif
+
+  if (nargout > 0)
+    retval = 1;
+  endif
+
+endfunction
--- a/scripts/polynomial/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/polynomial/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/quaternion/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/quaternion/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/set/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/set/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/signal/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/signal/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/specfun/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/specfun/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/special-matrix/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/special-matrix/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/statistics/base/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/statistics/base/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/statistics/distributions/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/statistics/distributions/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/statistics/models/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/statistics/models/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/statistics/tests/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/statistics/tests/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/strings/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/strings/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean:
--- a/scripts/time/Makefile.in	Wed Dec 18 00:34:29 2002 +0000
+++ b/scripts/time/Makefile.in	Wed Dec 18 03:07:48 2002 +0000
@@ -33,17 +33,11 @@
 .PHONY: all
 
 install install-strip:
-	$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir)
-	for f in $(FCN_FILES_NO_DIR); do \
-	  rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-install)
 .PHONY: install install-strip
 
 uninstall:
-	for f in $(FCN_FILES_NO_DIR); \
-	  do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \
-	done
+	$(do-script-uninstall)
 .PHONY: uninstall
 
 clean: