More bug fixes
authorTom Tromey <tromey@redhat.com>
Fri, 5 Apr 1996 00:44:17 +0000 (00:44 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 5 Apr 1996 00:44:17 +0000 (00:44 +0000)
ChangeLog
automake.in
lib/am/scripts.am
scripts.am

index aa5696a..dcc7515 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 Thu Apr  4 15:10:50 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
+       * automake.in (handle_scripts): Never allow scripts_installed to
+       become 0.
+
+       * scripts.am (install-@DIR@SCRIPTS): Scripts can be found in
+       srcdir.
+
        * automake.in (generate_makefile): Derived file names from given
        input; don't assume Makefile.in and Makefile.am.
        (am_file_name, in_file_name): New globals.
index b09ab5a..b33a7b7 100755 (executable)
@@ -768,12 +768,13 @@ sub handle_scripts
     # NOTE we no longer automatically clean SCRIPTS, because it is
     # useful to sometimes distribute scripts verbatim.  This happens
     # eg in Automake itself.
-    $scripts_installed = &am_install_var ('scripts', 'SCRIPTS',
-                                         'bin', 'sbin', 'libexec', 'pkgdata',
-                                         'noinst', 'check');
+    local ($msi);
+    $msi = &am_install_var ('scripts', 'SCRIPTS',
+                           'bin', 'sbin', 'libexec', 'pkgdata',
+                           'noinst', 'check');
 
     # We really only want a boolean value.
-    $scripts_installed = 1 if $scripts_installed;
+    $scripts_installed = 1 if $msi;
 
     if ($scripts_installed)
     {
index 6ccf121..997e05f 100644 (file)
@@ -22,7 +22,10 @@ install-@DIR@SCRIPTS: $(@DIR@_SCRIPTS)
        list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
          if test -f $$p; then \
            $(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
-         else :; fi; \
+         else if test -f $(srcdir)/$$p; then \
+           $(INSTALL_SCRIPT) $(srcdir)/$$p \
+             $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
+         else :; fi; fi; \
        done
 
 uninstall-@DIR@SCRIPTS:
index 6ccf121..997e05f 100644 (file)
@@ -22,7 +22,10 @@ install-@DIR@SCRIPTS: $(@DIR@_SCRIPTS)
        list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
          if test -f $$p; then \
            $(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
-         else :; fi; \
+         else if test -f $(srcdir)/$$p; then \
+           $(INSTALL_SCRIPT) $(srcdir)/$$p \
+             $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
+         else :; fi; fi; \
        done
 
 uninstall-@DIR@SCRIPTS: