automake-patches
[Top][All Lists]
Advanced

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

Re: 45-fyi-split-file-spec.patch


From: Tim Van Holder
Subject: Re: 45-fyi-split-file-spec.patch
Date: 26 Oct 2001 12:27:11 +0200

On Fri, 2001-10-26 at 11:39, Akim Demaille wrote:
>  ################################################################
> 
> +# ($OUTPUT, @INPUTS)
> +# &split_config_file_spec ($SPEC)
> +# -------------------------------
> +# Decode the Autoconf syntax for config files (files, headers, links
> +# etc.).
> +sub split_config_file_spec ($)
> +{
> +  my ($spec) = @_;
> +  my ($output, @inputs) = split (/:/, $spec);
> +
> +  push @inputs, "$output.in"
> +    unless @inputs;
> +
> +  return ($output, @inputs);
> +}

You're probably expecting me to react, so I will :-)
This may need a hairier split, as this form will break in the input file
is specified as an absolute DOS path.
I'm not sure if that actually happens often though (my guess would be
no).
You could check if there are any 'inputs' of size 1, followed by an
'input' that is an absolute path, then rejoin those two as they are
likely to be a DOS path (in fact, that probably goes for the output as
well).





reply via email to

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