bug fix for bsd/ultrix
authorTom Tromey <tromey@redhat.com>
Thu, 25 Sep 1997 04:56:27 +0000 (04:56 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 25 Sep 1997 04:56:27 +0000 (04:56 +0000)
27 files changed:
ChangeLog
Makefile.am
Makefile.in
THANKS
automake.in
clean-hdr.am
clean-kr.am
clean.am
compile.am
depend.am
kr-extra.am
lib/am/Makefile.am
lib/am/clean-hdr.am
lib/am/clean.am
lib/am/compile.am
lib/am/depend.am
lib/am/library.am
lib/am/libtool.am
lib/am/texi-vers.am
library.am
libs-clean.am
libtool.am
lisp-clean.am
ltlib-clean.am
progs-clean.am
tags-clean.am
texi-vers.am

index 6235941..6d6b516 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Wed Sep 24 16:10:37 1997  Tom Tromey  <tromey@cygnus.com>
 
+       * Various: Put "-" before each `rm' line.  This avoids a bug in
+       some losing makes (Ultrix, 4.3 BSD).
+
        * automake.in (handle_dist_worker): Correctly handle subdirs that
        have their own configure.in.  From Peter Mattis.
 
index 4c6b3a4..5d47439 100644 (file)
@@ -30,7 +30,7 @@ TAGS_DEPENDENCIES = automake.in aclocal.in automake.texi
 
 ## `test -x' is not portable.  So we use Perl instead.  If Perl
 ## doesn't exist, then this test is meaningless anyway.
-# Check to make sure some installed files are executable.
+       -rm -rf testSubdir
 installcheck-local:
        for file in $(pkgdata_SCRIPTS); do \
          $(PERL) -e "exit ! -x '$(pkgdatadir)/$$file';" || exit 1; \
index ffd5116..262b8f8 100644 (file)
@@ -410,8 +410,9 @@ distdir: $(DISTFILES)
        -chmod 777 $(distdir)
        here=`cd $(top_builddir) && pwd`; \
        top_distdir=`cd $(top_distdir) && pwd`; \
+       distdir=`cd $(distdir) && pwd`; \
        cd $(top_srcdir) \
-         && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnits Makefile
+         && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$distdir --gnits Makefile
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          test -f $(distdir)/$$file \
@@ -515,7 +516,7 @@ installdirs mostlyclean-generic distclean-generic clean-generic \
 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
 
 
-# Check to make sure some installed files are executable.
+       -rm -rf testSubdir
 installcheck-local:
        for file in $(pkgdata_SCRIPTS); do \
          $(PERL) -e "exit ! -x '$(pkgdatadir)/$$file';" || exit 1; \
diff --git a/THANKS b/THANKS
index 2c9fcd9..5c52081 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -4,6 +4,7 @@ people:
 
 "Juergen A. Erhard" <jae@laden.ilk.de>
 "Markus F.X.J. Oberhumer" <k3040e4@wildsau.idv-edu.uni-linz.ac.at>
+"Nelson H. F. Beebe" <beebe@math.utah.edu>
 "Paul D. Smith" <psmith@BayNetworks.COM>
 Akim Demaille <demaille@inf.enst.fr>
 Alexander V. Lukyanov <lav@yars.free.net>
index 66e2bc2..1dff245 100755 (executable)
@@ -2075,7 +2075,7 @@ sub handle_texinfo
     # How to clean.  The funny name is due to --cygnus influence; in
     # Cygnus mode, `clean-info' is a target that users can use.
     $output_rules .= "\nmostlyclean-aminfo:\n";
-    &pretty_print_rule ("\trm -f", "\t  ", @texi_cleans);
+    &pretty_print_rule ("\t-rm -f", "\t  ", @texi_cleans);
     $output_rules .= ("\nclean-aminfo:\n\ndistclean-aminfo:\n\n"
                      . "maintainer-clean-aminfo:\n\t"
                      # Eww.  But how else can we find all the output
@@ -2298,7 +2298,7 @@ sub handle_dist_worker
 
 
        # Create dist directory.
-       $output_rules .= ("\trm -rf \$(distdir)\n"
+       $output_rules .= ("\t-rm -rf \$(distdir)\n"
                          . "\tmkdir \$(distdir)\n"
                          . "\t-chmod 777 \$(distdir)\n");
     }
@@ -2525,7 +2525,7 @@ sub handle_dist
 # it guarantees that the distribution is self-contained by making another
 # tarfile.
 distcheck: dist
-       rm -rf $(distdir)
+       -rm -rf $(distdir)
        GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
        mkdir $(distdir)/=build
        mkdir $(distdir)/=inst
@@ -2545,7 +2545,7 @@ distcheck: dist
          && $(MAKE) install \\
          && $(MAKE) installcheck \\
          && $(MAKE) dist
-       rm -rf $(distdir)
+       -rm -rf $(distdir)
        @echo "========================"; \\
        echo "$(distdir).tar.gz is ready for distribution"; \\
        echo "========================"
@@ -3631,13 +3631,13 @@ sub do_one_clean_target
             . "\t\@echo \"it deletes files that may require special "
             . "tools to rebuild.\"\n");
 
-       $output_rules .= "\trm -f config.status\n"
+       $output_rules .= "\t-rm -f config.status\n"
            if $relative_dir eq '.';
     }
     elsif ($name . $target eq 'distclean')
     {
-       $output_rules .= "\trm -f config.status\n";
-       $output_rules .= "\trm -f libtool\n" if $seen_libtool;
+       $output_rules .= "\t-rm -f config.status\n";
+       $output_rules .= "\t-rm -f libtool\n" if $seen_libtool;
     }
     $output_rules .= "\n";
 }
@@ -5269,7 +5269,7 @@ sub initialize_global_constants
 
     $uninstall_man_format =
     '  inst=`echo "@MANBASE@" | sed \'$(transform)\'`.@FULLSECT@; \\
-       rm -f $(mandir)/man@SECTION@/$$inst
+       -rm -f $(mandir)/man@SECTION@/$$inst
 ';
 
     # Commonly found files we look for and automatically include in
@@ -5333,7 +5333,7 @@ sub initialize_global_constants
                     . "\n");
     $dist{'dist-zip'} = "\t" . 'zip -rq $(distdir).zip $(distdir)' . "\n";
     $dist{'dist'} = "\t" .  'GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)' . "\n";
-    $dist_trailer = "\t" . 'rm -rf $(distdir)' . "\n";
+    $dist_trailer = "\t" . '-rm -rf $(distdir)' . "\n";
 }
 
 # (Re)-Initialize per-Makefile.am variables.
index 781b6f0..e0d1170 100644 (file)
@@ -20,6 +20,6 @@ mostlyclean-hdr:
 clean-hdr:
 
 distclean-hdr:
-       rm -f @FILES@
+       -rm -f @FILES@
 
 maintainer-clean-hdr:
index bf8c78c..f7f3f36 100644 (file)
@@ -16,7 +16,7 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 mostlyclean-kr:
-       rm -f *_.c
+       -rm -f *_.c
 
 clean-kr:
 
index 86cd50e..c89d2d3 100644 (file)
--- a/clean.am
+++ b/clean.am
 ## -rf" command looks disturbing.  Also, the Solaris 2.4 "rm" will
 ## return an error if there are no arguments other than "-f".
 mostlyclean-generic:
-       test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
+       -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
 
 clean-generic:
-       test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
 
 distclean-generic:
-       rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log stamp-h stamp-h[0-9]*
-       test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -rm -f Makefile $(DISTCLEANFILES)
+       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
 maintainer-clean-generic:
-       test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-       test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+       -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
index a8ac4a0..ea67e7b 100644 (file)
 
 mostlyclean-compile:
 ## Don't remove 'core.*' because some distributions have eg "core.c".
-       rm -f *.o core
+       -rm -f *.o core
 
 clean-compile:
 
 distclean-compile:
-       rm -f *.tab.c
+       -rm -f *.tab.c
 
 maintainer-clean-compile:
index 07dd586..284b1e1 100644 (file)
--- a/depend.am
+++ b/depend.am
@@ -52,4 +52,4 @@ clean-depend:
 distclean-depend:
 
 maintainer-clean-depend:
-       rm -rf .deps
+       -rm -rf .deps
index 5f347b1..6577988 100644 (file)
@@ -24,7 +24,7 @@ clean-krextra:
 ## `clean' should delete it; if `configure' built it, then `distclean'
 ## should remove it (and if the maintainer built it, then
 ## maintainer-clean should remove it).
-       rm -f ansi2knr
+       -rm -f ansi2knr
 
 distclean-krextra:
 
index 4c6b3a4..5d47439 100644 (file)
@@ -30,7 +30,7 @@ TAGS_DEPENDENCIES = automake.in aclocal.in automake.texi
 
 ## `test -x' is not portable.  So we use Perl instead.  If Perl
 ## doesn't exist, then this test is meaningless anyway.
-# Check to make sure some installed files are executable.
+       -rm -rf testSubdir
 installcheck-local:
        for file in $(pkgdata_SCRIPTS); do \
          $(PERL) -e "exit ! -x '$(pkgdatadir)/$$file';" || exit 1; \
index 781b6f0..e0d1170 100644 (file)
@@ -20,6 +20,6 @@ mostlyclean-hdr:
 clean-hdr:
 
 distclean-hdr:
-       rm -f @FILES@
+       -rm -f @FILES@
 
 maintainer-clean-hdr:
index 86cd50e..c89d2d3 100644 (file)
 ## -rf" command looks disturbing.  Also, the Solaris 2.4 "rm" will
 ## return an error if there are no arguments other than "-f".
 mostlyclean-generic:
-       test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
+       -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
 
 clean-generic:
-       test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
 
 distclean-generic:
-       rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log stamp-h stamp-h[0-9]*
-       test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -rm -f Makefile $(DISTCLEANFILES)
+       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
 maintainer-clean-generic:
-       test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-       test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+       -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
index a8ac4a0..ea67e7b 100644 (file)
 
 mostlyclean-compile:
 ## Don't remove 'core.*' because some distributions have eg "core.c".
-       rm -f *.o core
+       -rm -f *.o core
 
 clean-compile:
 
 distclean-compile:
-       rm -f *.tab.c
+       -rm -f *.tab.c
 
 maintainer-clean-compile:
index 07dd586..284b1e1 100644 (file)
@@ -52,4 +52,4 @@ clean-depend:
 distclean-depend:
 
 maintainer-clean-depend:
-       rm -rf .deps
+       -rm -rf .deps
index a247448..9132ae6 100644 (file)
@@ -16,6 +16,6 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 @LIBRARY@: $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_DEPENDENCIES)
-       rm -f @LIBRARY@
+       -rm -f @LIBRARY@
        $(AR) cru @LIBRARY@ $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_LIBADD)
        $(RANLIB) @LIBRARY@
index 512b839..4d1706f 100644 (file)
        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
 
 mostlyclean-libtool:
-       rm -f *.lo
+       -rm -f *.lo
 
 clean-libtool:
-       rm -rf .libs
+       -rm -rf .libs
 
 distclean-libtool:
 
index 42e33ea..baf2ccd 100644 (file)
@@ -31,14 +31,15 @@ stamp-@VTI@: @TEXI@ $(top_srcdir)/configure.in
        @cmp -s @VTI@.tmp $(srcdir)/stamp-@VTI@ \
          || (echo "Updating $(srcdir)/stamp-@VTI@"; \
              cp @VTI@.tmp $(srcdir)/stamp-@VTI@)
-       @rm -f @VTI@.tmp
+       -@rm -f @VTI@.tmp
 
 mostlyclean-@VTI@:
-       rm -f @VTI@.tmp
+       -rm -f @VTI@.tmp
 
 clean-@VTI@:
 
 distclean-@VTI@:
 
 maintainer-clean-@VTI@:
-       @MAINT@rm -f stamp-@VTI@ @VTEXI@
+       -@MAINT@rm -f stamp-@VTI@ @VTEXI@
+
index a247448..9132ae6 100644 (file)
@@ -16,6 +16,6 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 @LIBRARY@: $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_DEPENDENCIES)
-       rm -f @LIBRARY@
+       -rm -f @LIBRARY@
        $(AR) cru @LIBRARY@ $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_LIBADD)
        $(RANLIB) @LIBRARY@
index 0f7f0fa..262163a 100644 (file)
@@ -18,7 +18,7 @@
 mostlyclean-@DIR@LIBRARIES:
 
 clean-@DIR@LIBRARIES:
-       test -z "$(@DIR@_LIBRARIES)" || rm -f $(@DIR@_LIBRARIES)
+       -test -z "$(@DIR@_LIBRARIES)" || rm -f $(@DIR@_LIBRARIES)
 
 distclean-@DIR@LIBRARIES:
 
index 512b839..4d1706f 100644 (file)
        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
 
 mostlyclean-libtool:
-       rm -f *.lo
+       -rm -f *.lo
 
 clean-libtool:
-       rm -rf .libs
+       -rm -rf .libs
 
 distclean-libtool:
 
index 94bbcd4..f9904ef 100644 (file)
@@ -18,7 +18,7 @@
 mostlyclean-lisp:
 
 clean-lisp:
-       test -z "$(ELCFILES)" || rm -f $(ELCFILES)
+       -test -z "$(ELCFILES)" || rm -f $(ELCFILES)
 
 distclean-lisp:
 
index 384acab..c7cdcfb 100644 (file)
@@ -18,7 +18,7 @@
 mostlyclean-@DIR@LTLIBRARIES:
 
 clean-@DIR@LTLIBRARIES:
-       test -z "$(@DIR@_LTLIBRARIES)" || rm -f $(@DIR@_LTLIBRARIES)
+       -test -z "$(@DIR@_LTLIBRARIES)" || rm -f $(@DIR@_LTLIBRARIES)
 
 distclean-@DIR@LTLIBRARIES:
 
index e0e4112..2b101f0 100644 (file)
@@ -18,7 +18,7 @@
 mostlyclean-@DIR@PROGRAMS:
 
 clean-@DIR@PROGRAMS:
-       test -z "$(@DIR@_PROGRAMS)" || rm -f $(@DIR@_PROGRAMS)
+       -test -z "$(@DIR@_PROGRAMS)" || rm -f $(@DIR@_PROGRAMS)
 
 distclean-@DIR@PROGRAMS:
 
index 62c143a..f169f35 100644 (file)
@@ -26,6 +26,6 @@ clean-tags:
 ## them.  The rule is: if the user built it, "distclean" removes it.
 ## If it is shipped, "maintainer-clean" removes it.
 distclean-tags:
-       rm -f TAGS ID
+       -rm -f TAGS ID
 
 maintainer-clean-tags:
index 42e33ea..baf2ccd 100644 (file)
@@ -31,14 +31,15 @@ stamp-@VTI@: @TEXI@ $(top_srcdir)/configure.in
        @cmp -s @VTI@.tmp $(srcdir)/stamp-@VTI@ \
          || (echo "Updating $(srcdir)/stamp-@VTI@"; \
              cp @VTI@.tmp $(srcdir)/stamp-@VTI@)
-       @rm -f @VTI@.tmp
+       -@rm -f @VTI@.tmp
 
 mostlyclean-@VTI@:
-       rm -f @VTI@.tmp
+       -rm -f @VTI@.tmp
 
 clean-@VTI@:
 
 distclean-@VTI@:
 
 maintainer-clean-@VTI@:
-       @MAINT@rm -f stamp-@VTI@ @VTEXI@
+       -@MAINT@rm -f stamp-@VTI@ @VTEXI@
+