]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to
authorGary V. Vaughan <gary@gnu.org>
Thu, 29 Jul 2004 19:34:23 +0000 (19:34 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 29 Jul 2004 19:34:23 +0000 (19:34 +0000)
help `make distcheck'; not only do we have to make a copy of
ltmain.sh available in the source tree, but we have to be really
careful about permission bit twiddling when we copy it across into
the possible read-only $(top_srcdir)/config directory!

ChangeLog
Makefile.am

index 701014fd9892c454b06ee137e10f652d51ab37f9..4a94ed52b985537cf4ba9d20730ac833a64aaeea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2004-07-29  Gary V. Vaughan  <gary@gnu.org>
 
+       * Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to
+       help `make distcheck'; not only do we have to make a copy of
+       ltmain.sh available in the source tree, but we have to be really
+       careful about permission bit twiddling when we copy it across into
+       the possible read-only $(top_srcdir)/config directory!
+
        * tests/tagtrace.test: Skip this test when running a VPATH build
        against a read-only source tree (as in distcheck for example),
        since autoconf wants to write temporary files in $top_srcdir
index 53b892699b570222424386a4c6489b298f2a6dee..1ae8cb5c8c7baebe052ea00d7c1879b9114151f3 100644 (file)
@@ -96,7 +96,12 @@ install-data-hook:
 ## VPATH builds because ltmain.sh ends up in the build tree rather
 ## than the source tree:
 $(top_srcdir)/config/ltmain.sh: config/ltmain.sh
-       cp config/ltmain.sh $(top_srcdir)/config/ltmain.sh
+       -dir=$(top_srcdir)/config; \
+       touch $$dir/fnord$$$$ 2>/dev/null || chmod a+w $$dir; \
+       rm -f $$dir/ltmain.sh; \
+       cp config/ltmain.sh $$dir/ltmain.sh; \
+       test -f $$dir/fnord$$$$ && \
+         { rm -f $$dir/fnord$$$$; chmod a-w $$dir $$dir/ltmain.sh; }
 
 ## Put it in so that automake doesn't choke on reconf.  We don't
 ## really want to distribute this file, but putting it here gives