automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for script magic.


From: Pavel Roskin
Subject: Fix for script magic.
Date: Wed, 1 Nov 2000 10:54:03 -0500 (EST)

Hello!

From Autoconf documentation:

--------------------
If you omit the space before the path, then 4.2BSD based systems
(such as Sequent DYNIX) will ignore the line, because they interpret
`#! /' as a 4-byte magic number.
--------------------

It's ridiculous that Autoconf itself uses scripts that violate that
rule. They come from Automake.

So I just went through Automake and fixed all the occurences of "#!/"
I'm not sure whether install-sh is maintained in the Automake repository,
but other files are.

ChangeLog:
        * elisp-comp: Use "#! /", not "#!/".
        * install-sh: Likewise.
        * mdate-sh: Likewise.
        * py-compile: Likewise.
        * tests/acoutnoq.test: Likewise.
        * tests/acoutput.test: Likewise.
        * tests/acouttbs.test: Likewise.
        * tests/checkall.test: Likewise.
        * tests/empty.test: Likewise.
        * tests/instexec.test: Likewise.
        * tests/libobj.test: Likewise.
        * tests/mdate.test: Likewise.
        * tests/vtexi.test: Likewise.

Regards,
Pavel Roskin

_____________________________
Index: elisp-comp
--- elisp-comp  Wed Nov  1 10:38:16 2000
+++ elisp-comp  Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 # Copyright 1995 Free Software Foundation, Inc.
 # FranГois Pinard <address@hidden>, 1995.
 #
Index: install-sh
--- install-sh  Wed Nov  1 10:38:16 2000
+++ install-sh  Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 #
 # install - install a program, script, or datafile
 # This comes from X11R5 (mit/util/scripts/install.sh).
Index: mdate-sh
--- mdate-sh    Wed Nov  1 10:38:17 2000
+++ mdate-sh    Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 # Get modification time of a file or directory and pretty-print it.
 # Copyright 1995, 1996, 1997 Free Software Foundation, Inc.
 # written by Ulrich Drepper <address@hidden>, June 1995
Index: py-compile
--- py-compile  Wed Nov  1 10:38:17 2000
+++ py-compile  Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 # called as "py-compile [--basedir DIR] PY_FILES ...
 
 if [ -z "$PYTHON" ]; then
Index: tests/acoutnoq.test
--- tests/acoutnoq.test Wed Nov  1 10:38:17 2000
+++ tests/acoutnoq.test Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test for bug reported by Jerome Santini.
 # If I put this line in my configure.in:
Index: tests/acoutput.test
--- tests/acoutput.test Wed Nov  1 10:38:17 2000
+++ tests/acoutput.test Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test for bug when AC_OUTPUT has 2 args on the same line, eg:
 #   AC_OUTPUT([Makefile automake tests/Makefile],[chmod +x automake])
Index: tests/acouttbs.test
--- tests/acouttbs.test Wed Nov  1 10:38:17 2000
+++ tests/acouttbs.test Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test for bug reported by FranГois Pinard.
 # If \ is in AC_OUTPUT, automake barfs.
Index: tests/checkall.test
--- tests/checkall.test Wed Nov  1 10:38:17 2000
+++ tests/checkall.test Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test for bug where check target doesn't depend on all.
 
Index: tests/empty.test
--- tests/empty.test    Wed Nov  1 10:38:17 2000
+++ tests/empty.test    Wed Nov  1 10:41:01 2000
@@ -19,7 +19,7 @@
 # won't execute this file if is empty, or has just a colon in it (but
 # it will run from the shell).
 cat > mkinstalldirs << 'END'
-#!/bin/sh
+#! /bin/sh
 END
 chmod +x mkinstalldirs
 
Index: tests/instexec.test
--- tests/instexec.test Wed Nov  1 10:38:17 2000
+++ tests/instexec.test Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test for this bug: when a Makefile.am builds nothing, no
 # install-exec target is generated.
Index: tests/libobj.test
--- tests/libobj.test   Wed Nov  1 10:38:17 2000
+++ tests/libobj.test   Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test for bug reported by Jim Meyering:
 # automake-0.29 didn't handle this line properly.
Index: tests/mdate.test
--- tests/mdate.test    Wed Nov  1 10:38:17 2000
+++ tests/mdate.test    Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test that mdate-sh is required when Texinfo used and version.texi needed.
 
Index: tests/vtexi.test
--- tests/vtexi.test    Wed Nov  1 10:38:17 2000
+++ tests/vtexi.test    Wed Nov  1 10:41:01 2000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 
 # Test for bug reported by Jim Meyering:
 # When I ran automake-0.29 on textutils,
_____________________________





reply via email to

[Prev in Thread] Current Thread [Next in Thread]