automake
[Top][All Lists]
Advanced

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

Small autoreconf patch (was Re: Patch 3 of 4: Avoid 8+3 filename trouble


From: Tim Van Holder
Subject: Small autoreconf patch (was Re: Patch 3 of 4: Avoid 8+3 filename trouble)
Date: Sun, 11 Feb 2001 20:46:50 +0100

> >     * remake-hdr.am (@STAMP@): Use .T as suffix for the
> >     temporary file.
> 
> You should probably patch autoconf's autoreconf too.
What part would need patching? AFAICS, it does not use
names with multiple dots or with conflicting 8+3 names.

The only changes my local autoreconf currently has are
listed below; I don't think they're critical, but they
might as well go in.

2001-02-11      Tim Van Holder <address@hidden>

        * autoreconf.sh: Improve support for DOS paths.


Index: autoreconf.sh
===================================================================
RCS file: /cvs/autoconf/autoreconf.sh,v
retrieving revision 1.67
diff -u -r1.67 autoreconf.sh
--- autoreconf.sh       2001/02/01 23:23:57     1.67
+++ autoreconf.sh       2001/02/11 19:44:00
@@ -17,7 +17,7 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 # 02111-1307, USA.

-me=`echo "$0" | sed -e 's,.*/,,'`
+me=`echo "$0" | sed -e 's,.*[\\/],,'`

 usage="\
 Usage: $0 [OPTION] ... [TEMPLATE-FILE]
@@ -91,7 +91,7 @@
 # Variables.
 : address@hidden@}}
 debug=false
-dir=`echo "$0" | sed -e 's,[^/]*$,,'`
+dir=`echo "$0" | sed -e 's,[^\\/]*$,,'`
 force=false
 # --install -- as --add-missing in other tools.
 install=false
@@ -375,6 +375,7 @@
   templates=`$autoconf -t 'AC_CONFIG_HEADERS:$1'`
   if test -n "$templates"; then
     tcount=`set -- $templates; echo $#`
+    # This will likely need some patching for DOS paths
     template=`set -- $templates; echo $1 | sed '
         s/.*://
         t colon
@@ -382,7 +383,7 @@
         : colon
         s/:.*//
       '`
-    template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
+    template_dir=`echo $template | sed -e 's,[\\/]*[^\\/]*$,,;s,^$,.,'`
     stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
     stamp=$template_dir/stamp-h$stamp_num.in
     # If config.hin exists, don't override it unless it was really




reply via email to

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