[Top][All Lists]

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

Re: [autoconf] Keep executability of config.status-ed files v5

From: Eric Sunshine
Subject: Re: [autoconf] Keep executability of config.status-ed files v5
Date: Tue, 6 Jan 2004 07:45:15 -0500

On Sat, 13 Dec 2003 10:40:50 +0100, Jan Kratochvil wrote:
> When config.status builds "FILE" from "" it always creates
> non-executable files. The attached patch propagates 'executable' attribute
> of first input file. Patch has been developed/ratified with/by
> <address@hidden>.
> I do not have autoconf CVS commit permission.

Now that Savannah is back online, will someone be committing Jan's patch?


diff -u -ru autoconf-2.57-orig/lib/autoconf/status.m4  
--- autoconf-2.57-orig/lib/autoconf/status.m4   Tue Nov 12 11:54:46 2002
+++ autoconf-2.57/lib/autoconf/status.m4        Thu Dec 11 07:35:34 2003
@@ -1026,11 +1026,18 @@
 dnl    mv $tmp/out $ac_file
 dnl  fi
   if test x"$ac_file" != x-; then
-    mv $tmp/out $ac_file
+    rm -f $ac_file
+dnl Propagate 'executable' attribute of first input file.
+    for f in $ac_file_inputs; do
+      cp $f $ac_file
+      chmod u+w $ac_file
+      break
+    done
+    cat $tmp/out >$ac_file
     cat $tmp/out
-    rm -f $tmp/out
+  rm -f $tmp/out

 [  # Run the commands associated with the file.

reply via email to

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