[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line leng
From: |
Stefano Lattarini |
Subject: |
Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files |
Date: |
Sat, 14 Jul 2012 19:24:51 +0200 |
On 07/14/2012 05:13 PM, Akim Demaille wrote:
>
> Le 13 juil. 2012 à 12:19, Stefano Lattarini a écrit :
>
>> + @while read file; do \
>> ## Always look for the file or directory to distribute in the build
>> ## directory first, in VPATH spirit.
>> if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
>> @@ -191,7 +200,7 @@ endif %?TOPDIR_P%
>> || cp -p $$d/$$file "$(distdir)/$$file" \
>> || exit 1; \
>> fi; \
>> - done
>> + done < $(am__dir)/address@hidden
>
> I would write
>
> @< $(am__dir)/address@hidden while read file; do
> …
> done
>
> but I guess that's a matter of taste. Ack.
>
In this case, you have better taste I guess :-). But is the above really
portable? I'm not sure the slightly improved readability is worth the
risk in this case.
Regards,
Stefano
- [Automake-NG] [PATCH 0/3] Distribute many files without hitting command line length limits, Stefano Lattarini, 2012/07/13
- [Automake-NG] [PATCH 2/3] [ng] coverage: distributing lots of files, Stefano Lattarini, 2012/07/13
- [Automake-NG] [PATCH 1/3] [ng] dist: memoize some internal variables, Stefano Lattarini, 2012/07/13
- [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Stefano Lattarini, 2012/07/13
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Akim Demaille, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files,
Stefano Lattarini <=
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Eric Blake, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Stefano Lattarini, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Eric Blake, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Stefano Lattarini, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Akim Demaille, 2012/07/18
Re: [Automake-NG] [PATCH 0/3] Distribute many files without hitting command line length limits, Stefano Lattarini, 2012/07/16